From 402067d281febb813cea526b1fb83e0eb2a448f0 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Sat, 7 Jun 2025 21:24:39 +0800 Subject: [PATCH] Tests: Fix TestCommanderListHandlers (#4789) --- testing/scenarios/command_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/scenarios/command_test.go b/testing/scenarios/command_test.go index e562952b..c7914752 100644 --- a/testing/scenarios/command_test.go +++ b/testing/scenarios/command_test.go @@ -286,8 +286,8 @@ func TestCommanderListHandlers(t *testing.T) { t.Error("unexpected nil response") } - if !cmp.Equal(inboundResp.Inbounds, clientConfig.Inbound, protocmp.Transform()) { - t.Fatal("inbound response doesn't match config") + if diff := cmp.Diff(inboundResp.Inbounds, clientConfig.Inbound, protocmp.Transform()); diff != "" { + t.Fatalf("inbound response doesn't match config (-want +got):\n%s", diff) } outboundResp, err := hsClient.ListOutbounds(context.Background(), &command.ListOutboundsRequest{}) @@ -296,8 +296,8 @@ func TestCommanderListHandlers(t *testing.T) { t.Error("unexpected nil response") } - if !cmp.Equal(outboundResp.Outbounds, clientConfig.Outbound, protocmp.Transform()) { - t.Fatal("outbound response doesn't match config") + if diff := cmp.Diff(outboundResp.Outbounds, clientConfig.Outbound, protocmp.Transform()); diff != "" { + t.Fatalf("outbound response doesn't match config (-want +got):\n%s", diff) } }