Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Oct 8, 2024
1 parent bdc15b7 commit 57bdb13
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions internal/moduleconfig/moduleconfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ func TestDefaulting(t *testing.T) {
},

// Validation failures
{
config: UnvalidatedModuleConfig{
Dir: "b",
Module: "nodeploy",
Language: "test",
},
defaults: CustomDefaults{
DeployDir: "deploydir",
},
error: "no deploy files configured",
},
{
config: UnvalidatedModuleConfig{
Dir: "b",
Expand All @@ -141,7 +130,7 @@ func TestDefaulting(t *testing.T) {

config, err := tt.config.FillDefaultsAndValidate(tt.defaults)
if tt.error != "" {
assert.Contains(t, err.Error(), tt.error)
assert.EqualError(t, err, tt.error)
return
}
assert.NoError(t, err)
Expand Down

0 comments on commit 57bdb13

Please sign in to comment.