From c2f084c824876cbc933de799e4e4e9be34dad2a7 Mon Sep 17 00:00:00 2001 From: Cihangir SAVAS Date: Fri, 2 Jan 2015 20:20:45 -0800 Subject: [PATCH] rpc: s/+= 1/++ --- go/rpcplus/jsonrpc/all_test.go | 2 +- go/rpcplus/streaming_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go/rpcplus/jsonrpc/all_test.go b/go/rpcplus/jsonrpc/all_test.go index f508afe5f6..1543c6cf94 100644 --- a/go/rpcplus/jsonrpc/all_test.go +++ b/go/rpcplus/jsonrpc/all_test.go @@ -203,7 +203,7 @@ func TestStreamingCall(t *testing.T) { if row.C != count { t.Fatal("unexpected value:", row.C) } - count += 1 + count++ // log.Println("Values: ", row) } diff --git a/go/rpcplus/streaming_test.go b/go/rpcplus/streaming_test.go index fdeb2a9f9d..b79be19c92 100644 --- a/go/rpcplus/streaming_test.go +++ b/go/rpcplus/streaming_test.go @@ -92,7 +92,7 @@ func callOnceAndCheck(t *testing.T, client *Client) { if row.Index != count { t.Fatal("unexpected value:", row.Index) } - count += 1 + count++ // log.Println("Values: ", row.C, row.Index) } @@ -168,7 +168,7 @@ func TestInterruptedCallByServer(t *testing.T) { if row.Index != count { t.Fatal("unexpected value:", row.Index) } - count += 1 + count++ } if count != 30 { t.Fatal("received error before the right time:", count) @@ -211,7 +211,7 @@ func TestBadTypeByServer(t *testing.T) { if row.Index != count { t.Fatal("unexpected value:", row.Index) } - count += 1 + count++ } if count != 30 { t.Fatal("received error before the right time:", count)