-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Increase disconnect await timeout in flaky P2P rejection tests #10267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -256,9 +256,9 @@ public void rejectIncomingConnectionFromDenylistedPeer() throws Exception { | |
| // Check connection is made, and then a disconnect is registered at remote | ||
| Assertions.assertThat(connectFuture.get(5L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| .isEqualTo(localId); | ||
| Assertions.assertThat(peerFuture.get(5L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| Assertions.assertThat(peerFuture.get(30L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| .isEqualTo(localId); | ||
| assertThat(reasonFuture.get(5L, TimeUnit.SECONDS)) | ||
| assertThat(reasonFuture.get(30L, TimeUnit.SECONDS)) | ||
| .isEqualByComparingTo(DisconnectReason.UNKNOWN); | ||
|
Comment on lines
257
to
262
|
||
| } | ||
| } | ||
|
|
@@ -307,9 +307,9 @@ public void rejectIncomingConnectionFromDisallowedPeer() throws Exception { | |
| final Bytes localId = localEnode.getNodeId(); | ||
| Assertions.assertThat(connectFuture.get(5L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| .isEqualTo(localId); | ||
| Assertions.assertThat(peerFuture.get(5L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| Assertions.assertThat(peerFuture.get(30L, TimeUnit.SECONDS).getPeerInfo().getNodeId()) | ||
| .isEqualTo(localId); | ||
| assertThat(reasonFuture.get(5L, TimeUnit.SECONDS)) | ||
| assertThat(reasonFuture.get(30L, TimeUnit.SECONDS)) | ||
| .isEqualByComparingTo(DisconnectReason.UNKNOWN); | ||
|
Comment on lines
308
to
313
|
||
| } | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as in
P2PPlainNetworkTest: please consider centralizing the 30s value into a named constant (potentially shared between these two test classes) so future adjustments don’t require updating multiple call sites.