mirror of https://github.com/status-im/consul.git
Actually track nonce in test
This commit is contained in:
parent
7f9a5d0f58
commit
1b46b35041
|
@ -1887,6 +1887,7 @@ func expectReplEvents(t *testing.T, client *MockClient, checkFns ...func(t *test
|
||||||
// Ensure every nonce was unique.
|
// Ensure every nonce was unique.
|
||||||
if resp := out[i].GetResponse(); resp != nil {
|
if resp := out[i].GetResponse(); resp != nil {
|
||||||
require.NotContains(t, nonces, resp.Nonce)
|
require.NotContains(t, nonces, resp.Nonce)
|
||||||
|
nonces[resp.Nonce] = struct{}{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue