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.
pull/2910/head
Johan Brandhorst-Satzkorn 3 years ago
parent 430e372333
commit 48e4fcce25

@ -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)
}

Loading…
Cancel
Save