Browse Source

integration: simplify boolean comparison in resp.Created

Gyu-Ho Lee 9 years ago
parent
commit
f3cb93015c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      integration/v3_watch_test.go

+ 1 - 1
integration/v3_watch_test.go

@@ -717,7 +717,7 @@ func testV3WatchMultipleEventsTxn(t *testing.T, startRev int64) {
 	if err := wStream.Send(wreq); err != nil {
 		t.Fatalf("wStream.Send error: %v", err)
 	}
-	if resp, err := wStream.Recv(); err != nil || resp.Created == false {
+	if resp, err := wStream.Recv(); err != nil || !resp.Created {
 		t.Fatalf("create response failed: resp=%v, err=%v", resp, err)
 	}