Skip to content

Commit ef7f1cc

Browse files
authored
Tests: Fix TestCommanderListHandlers (#4789)
1 parent fb1cd07 commit ef7f1cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing/scenarios/command_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ func TestCommanderListHandlers(t *testing.T) {
286286
t.Error("unexpected nil response")
287287
}
288288

289-
if !cmp.Equal(inboundResp.Inbounds, clientConfig.Inbound, protocmp.Transform()) {
290-
t.Fatal("inbound response doesn't match config")
289+
if diff := cmp.Diff(inboundResp.Inbounds, clientConfig.Inbound, protocmp.Transform()); diff != "" {
290+
t.Fatalf("inbound response doesn't match config (-want +got):\n%s", diff)
291291
}
292292

293293
outboundResp, err := hsClient.ListOutbounds(context.Background(), &command.ListOutboundsRequest{})
@@ -296,8 +296,8 @@ func TestCommanderListHandlers(t *testing.T) {
296296
t.Error("unexpected nil response")
297297
}
298298

299-
if !cmp.Equal(outboundResp.Outbounds, clientConfig.Outbound, protocmp.Transform()) {
300-
t.Fatal("outbound response doesn't match config")
299+
if diff := cmp.Diff(outboundResp.Outbounds, clientConfig.Outbound, protocmp.Transform()); diff != "" {
300+
t.Fatalf("outbound response doesn't match config (-want +got):\n%s", diff)
301301
}
302302
}
303303

0 commit comments

Comments
 (0)