Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly committed Sep 16, 2024
1 parent 99f634a commit 57c2256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/apis/policy/v1alpha1/any_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestAny_UnmarshalJSON(t *testing.T) {
}, {
name: "int",
data: []byte("42"),
want: &Any{Value: 42.0},
want: &Any{Value: int64(42)},
wantErr: false,
}, {
name: "string",
Expand All @@ -108,7 +108,7 @@ func TestAny_UnmarshalJSON(t *testing.T) {
}, {
name: "map",
data: []byte(`{"foo":42}`),
want: &Any{Value: map[string]any{"foo": 42.0}},
want: &Any{Value: map[string]any{"foo": int64(42)}},
wantErr: false,
}, {
name: "error",
Expand Down

0 comments on commit 57c2256

Please sign in to comment.