google: remove remaining cmp.Diff call

Change-Id: I189302ad4f49a206dd298b767a827b0263df8c43
This commit is contained in:
Patrick Jones 2020-11-12 14:21:10 -08:00
parent 929f793807
commit 0dc8cd7820
2 changed files with 2 additions and 3 deletions

View File

@ -63,7 +63,6 @@ func ExchangeToken(ctx context.Context, endpoint string, request *STSTokenExchan
} }
return &stsResp, nil return &stsResp, nil
} }

View File

@ -81,8 +81,8 @@ func TestExchangeToken(t *testing.T) {
t.Fatalf("ExchangeToken failed with error: %v", err) t.Fatalf("ExchangeToken failed with error: %v", err)
} }
if diff := cmp.Diff(expectedToken, *resp); diff != "" { if expectedToken != *resp {
t.Errorf("mismatched messages received by mock server (-want +got): \n%v", diff) t.Errorf("mismatched messages received by mock server. \nWant: \n%v\n\nGot:\n%v", expectedToken, *resp)
} }
} }