Skip to content

Commit 1b256b3

Browse files
committed
fix test
1 parent 42841c1 commit 1b256b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

integration/screenboards_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func getTestScreenboard() *datadog.Screenboard {
9494
return &datadog.Screenboard{
9595
Title: datadog.String("___Test-Board___"),
9696
Height: datadog.Int(600),
97-
Width: datadog.Int(800),
97+
Width: datadog.JsonNumber("800"),
9898
Widgets: []datadog.Widget{},
9999
}
100100
}
@@ -129,7 +129,7 @@ func assertScreenboardEquals(t *testing.T, actual, expected *datadog.Screenboard
129129
t.Errorf("Screenboard title does not match: %s != %s", *actual.Title, *expected.Title)
130130
}
131131
if *actual.Width != *expected.Width {
132-
t.Errorf("Screenboard width does not match: %d != %d", *actual.Width, *expected.Width)
132+
t.Errorf("Screenboard width does not match: %s != %s", *actual.Width, *expected.Width)
133133
}
134134
if *actual.Height != *expected.Height {
135135
t.Errorf("Screenboard width does not match: %d != %d", *actual.Height, *expected.Height)

screenboards_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ func TestGetScreenboard(t *testing.T) {
4242
t.Fatalf("expect height %d. Got %d", expectedHeight, height)
4343
}
4444

45-
expectedWidth := 1024
46-
if width := screenboard.GetWidth(); width != expectedWidth {
47-
t.Fatalf("expect width %d. Got %d", expectedWidth, width)
45+
expectedWidth := "1024"
46+
if width := screenboard.GetWidth(); width.String() != expectedWidth {
47+
t.Fatalf("expect width %s. Got %s", expectedWidth, width)
4848
}
4949

5050
expectedReadOnly := false

0 commit comments

Comments
 (0)