Skip to content

Commit

Permalink
Fix failing invocation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore committed Sep 18, 2024
1 parent ec9c9d1 commit 178879f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/deployclient/deployclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,8 @@ func TestValidationFailures(t *testing.T) {
{deployclient.ErrMalformedAPIKey.Error(), func(cfg deployclient.Config) deployclient.Config { cfg.APIKey = "malformed"; return cfg }},
} {
cfg := testCase.transform(*valid)
request, err := deployclient.Prepare(context.Background(), &cfg)
err := cfg.Validate()
assert.Error(t, err)
assert.Nil(t, request)
assert.Equal(t, deployclient.ExitInvocationFailure, deployclient.ErrorExitCode(err))
assert.Contains(t, err.Error(), testCase.errorMsg)
}
}
Expand Down

0 comments on commit 178879f

Please sign in to comment.