Skip to content

Commit

Permalink
testing: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Feb 7, 2024
1 parent 62fc35f commit 2359f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func TestListContainers(t *testing.T) {
Ports: container.NetworkSettings.PortMappingAPI(),
Names: []string{"/" + container.Name},
State: container.State.StateString(),
Labels: map[string]string{"key": fmt.Sprintf("val-%d", i)},
}
}
sortFn := func(left, right docker.APIContainers) int {
Expand All @@ -220,7 +221,7 @@ func TestListContainers(t *testing.T) {
}
slices.SortFunc(got, sortFn)
if !reflect.DeepEqual(got, expected) {
t.Errorf("ListContainers. Want %#v. Got %#v.", expected, got)
t.Errorf("ListContainers.\nWant %#v.\nGot %#v.", expected, got)
}
}

Expand Down

0 comments on commit 2359f27

Please sign in to comment.