Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Jun 27, 2024
1 parent 8f507eb commit 168e9bf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/oonirun/experiment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ func TestExperimentSetOptions(t *testing.T) {
// create the Experiment we're using for this test
exp := &Experiment{
ExtraOptions: map[string]any{
"ReturnError": true,
"SleepTime": 500,
"Message": "jarjarbinks",
},
InitialOptions: []byte(`{"Message": "foobar", "SleepTime": 100}`),
InitialOptions: []byte(`{"Message": "foobar", "ReturnError": true}`),
Name: "example",

// TODO(bassosimone): A zero-value session works here. The proper change
Expand Down Expand Up @@ -170,17 +169,17 @@ func TestExperimentSetOptions(t *testing.T) {
"Message": {
Doc: "Message to emit at test completion",
Type: "string",
Value: string("foobar"), // set by InitialOptions
Value: string("jarjarbinks"), // set by ExtraOptions
},
"ReturnError": {
Doc: "Toogle to return a mocked error",
Type: "bool",
Value: bool(true), // set by ExtraOptions
Value: bool(true), // set by InitialOptions
},
"SleepTime": {
Doc: "Amount of time to sleep for in nanosecond",
Type: "int64",
Value: int64(500), // set by InitialOptions, overriden by ExtraOptions
Value: int64(1000000000), // still the default nonzero value
},
}

Expand Down

0 comments on commit 168e9bf

Please sign in to comment.