fix: remove file number dependency from test
This was failing because of the added comments. This isn't a crucial part of the test, so remove it.
This commit is contained in:
1 parent
430e372333
commit
48e4fcce25
1 file changed
+2
-2
@@ -1784,7 +1784,7 @@ func TestLoad(t *testing.T) {
|
||||
{
|
||||
"MultiFileMix",
|
||||
nil,
|
||||
fmt.Errorf("Error parsing KMS HCL: At 30:1: expected: IDENT | STRING got: LBRACE"),
|
||||
fmt.Errorf("expected: IDENT | STRING got: LBRACE"),
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1802,7 +1802,7 @@ func TestLoad(t *testing.T) {
|
||||
ctx := context.Background()
|
||||
cfg, err := config.Load(ctx, paths, "")
|
||||
if tc.expectedErr != nil {
|
||||
require.Equal(t, tc.expectedErr.Error(), err.Error())
|
||||
require.Contains(t, err.Error(), tc.expectedErr.Error())
|
||||
} else {
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user