From 57bdb1330a07d69faf390641b39cb4beaea81420 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Wed, 9 Oct 2024 08:37:03 +1100 Subject: [PATCH] fix tests --- internal/moduleconfig/moduleconfig_test.go | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/internal/moduleconfig/moduleconfig_test.go b/internal/moduleconfig/moduleconfig_test.go index 78d69f7924..e9a1b372cf 100644 --- a/internal/moduleconfig/moduleconfig_test.go +++ b/internal/moduleconfig/moduleconfig_test.go @@ -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", @@ -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)