Skip to content

Commit

Permalink
Fix test case to account for new features with latest go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell committed Dec 11, 2024
1 parent 0951cec commit d73297b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/step/plugin/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,14 @@ func TestProvider_HappyError(t *testing.T) {
// unserialize malformed input schema
assert.Error(t, running.ProvideStageInput(
string(plugin.StageIDStarting),
map[string]any{"input": 1},
// The schema must be for the object with the field wait_time_ms, which is an integer.
map[string]any{"input": "not a valid value"},
))

waitTimeMs := 50
assert.NoError(t, running.ProvideStageInput(
string(plugin.StageIDStarting),
// It is also valid to inline waitTimeMs.
map[string]any{"input": map[string]any{"wait_time_ms": waitTimeMs}},
))

Expand Down

0 comments on commit d73297b

Please sign in to comment.