mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
integration: simplify boolean comparison in resp.Created
This commit is contained in:
parent
55307d48ac
commit
f3cb93015c
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user