From d95ab21cfb981239bd54ef4e201b0ec0987f0e6d Mon Sep 17 00:00:00 2001 From: Paddy Carver Date: Wed, 16 Dec 2020 14:10:49 -0800 Subject: [PATCH] Ignore useJSONNumber in cmp. Fixes tests. --- tfexec/internal/e2etest/cmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tfexec/internal/e2etest/cmp.go b/tfexec/internal/e2etest/cmp.go index 53bc4543..b079f6e3 100644 --- a/tfexec/internal/e2etest/cmp.go +++ b/tfexec/internal/e2etest/cmp.go @@ -12,7 +12,7 @@ import ( // diffState returns a human-readable report of the differences between two // state values. It returns an empty string if the two values are equal. func diffState(expected *tfjson.State, actual *tfjson.State) string { - return cmp.Diff(expected, actual, cmpopts.IgnoreFields(tfjson.State{}, "TerraformVersion")) + return cmp.Diff(expected, actual, cmpopts.IgnoreFields(tfjson.State{}, "TerraformVersion"), cmpopts.IgnoreFields(tfjson.State{}, "useJSONNumber")) } // diffPlan returns a human-readable report of the differences between two