From 8192f26adeae1aa4328e5845947e778eb47cca48 Mon Sep 17 00:00:00 2001 From: "jsakyle@gmail.com" Date: Thu, 11 Feb 2021 20:53:51 -0500 Subject: [PATCH] addressing test feedback --- modules/terraform/var-file_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/terraform/var-file_test.go b/modules/terraform/var-file_test.go index 993ecf4ea..39e3b3e6b 100644 --- a/modules/terraform/var-file_test.go +++ b/modules/terraform/var-file_test.go @@ -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())