Skip to content

Commit 2359f27

Browse files
committed
testing: fix test
1 parent 62fc35f commit 2359f27

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/server_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ func TestListContainers(t *testing.T) {
207207
Ports: container.NetworkSettings.PortMappingAPI(),
208208
Names: []string{"/" + container.Name},
209209
State: container.State.StateString(),
210+
Labels: map[string]string{"key": fmt.Sprintf("val-%d", i)},
210211
}
211212
}
212213
sortFn := func(left, right docker.APIContainers) int {
@@ -220,7 +221,7 @@ func TestListContainers(t *testing.T) {
220221
}
221222
slices.SortFunc(got, sortFn)
222223
if !reflect.DeepEqual(got, expected) {
223-
t.Errorf("ListContainers. Want %#v. Got %#v.", expected, got)
224+
t.Errorf("ListContainers.\nWant %#v.\nGot %#v.", expected, got)
224225
}
225226
}
226227

0 commit comments

Comments
 (0)