Fix error formatting based on best practices from Code Review Comments (#2615)

This commit is contained in:
CodeLingo Bot
2019-02-08 07:01:40 +13:00
committed by Menghan Li
parent d14ffaeb5c
commit c2f12b83a7
7 changed files with 9 additions and 9 deletions

View File

@ -386,7 +386,7 @@ func (s) TestRetryStreaming(t *testing.T) {
cCheckElapsed := func(d time.Duration) clientOp {
return func(_ testpb.TestService_FullDuplexCallClient) error {
if elapsed := time.Since(curTime); elapsed < d {
return fmt.Errorf("Elapsed time: %v; want >= %v", elapsed, d)
return fmt.Errorf("elapsed time: %v; want >= %v", elapsed, d)
}
return nil
}