File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments