Skip to content

Commit

Permalink
Ignore useJSONNumber in cmp.
Browse files Browse the repository at this point in the history
Fixes tests.
  • Loading branch information
paddycarver authored and kmoe committed Dec 17, 2020
1 parent b002bc4 commit d95ab21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tfexec/internal/e2etest/cmp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d95ab21

Please sign in to comment.