Skip to content

Commit

Permalink
NE-1185: Test_desiredHttpErrorCodeConfigMap: Fix format
Browse files Browse the repository at this point in the history
* pkg/operator/controller/sync-http-error-code-configmap/controller_test.go
(Test_desiredHttpErrorCodeConfigMap): Replace Ruby-style #{} syntax for
string interpolation with Go string formats.
  • Loading branch information
Miciah authored and gcs278 committed Jan 30, 2023
1 parent 5781345 commit 66defd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func TestDesiredHttpErrorCodeConfigMap(t *testing.T) {
}

if !reflect.DeepEqual(expected.Data, actual.Data) {
t.Errorf("expected #{expected} and actual #{actual} configmap don't match")
t.Errorf("expected configmap and actual configmap don't match\nexpected:\n%v\nactual:\n%v", expected, actual)
}
}
}

0 comments on commit 66defd0

Please sign in to comment.