Skip to content

Commit

Permalink
addressing test feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alpacamybags118 committed Feb 12, 2021
1 parent b5d2235 commit 8192f26
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/terraform/var-file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ func TestGetAllVariablesFromVarFileBadFile(t *testing.T) {

err = GetAllVariablesFromVarFileE(t, randomFileName, variables)

if err == nil {
t.FailNow()
}
require.Error(t, err)

// HCL library could change their error string, so we are only testing the error string contains what we add to it
require.Regexp(t, fmt.Sprintf("^%s - ", randomFileName), err.Error())
Expand Down

0 comments on commit 8192f26

Please sign in to comment.