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:
Johan Brandhorst-Satzkorn committed 2023-02-03 15:55:38 -08:00
1 parent 430e372333
commit 48e4fcce25
1 file changed
+2 -2
+2 -2
View File
@@ -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)
}