forked from Mirrors/oauth2
google: remove remaining cmp.Diff call
Change-Id: I189302ad4f49a206dd298b767a827b0263df8c43
This commit is contained in:
parent
929f793807
commit
0dc8cd7820
|
@ -63,7 +63,6 @@ func ExchangeToken(ctx context.Context, endpoint string, request *STSTokenExchan
|
|||
|
||||
}
|
||||
|
||||
|
||||
return &stsResp, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -81,8 +81,8 @@ func TestExchangeToken(t *testing.T) {
|
|||
t.Fatalf("ExchangeToken failed with error: %v", err)
|
||||
}
|
||||
|
||||
if diff := cmp.Diff(expectedToken, *resp); diff != "" {
|
||||
t.Errorf("mismatched messages received by mock server (-want +got): \n%v", diff)
|
||||
if expectedToken != *resp {
|
||||
t.Errorf("mismatched messages received by mock server. \nWant: \n%v\n\nGot:\n%v", expectedToken, *resp)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue