You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform-sdk/consensus-otter-tests/src/testFixtures/java/org/hiero/otter/fixtures/internal/AbstractNetwork.java
+20Lines changed: 20 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -629,6 +629,7 @@ public void restoreBandwidthLimitsForAllConnections(@NonNull final Node node) {
629
629
@Override
630
630
publicvoidrestoreConnectivity() {
631
631
networkPartitions.clear();
632
+
connected.clear();
632
633
latencyOverrides.clear();
633
634
bandwidthOverrides.clear();
634
635
updateConnections();
@@ -1213,15 +1214,19 @@ public Node receiver() {
1213
1214
*/
1214
1215
@Override
1215
1216
publicvoiddisconnect() {
1217
+
log.info("Disconnecting connection from node {} to node {}", sender.selfId(), receiver.selfId());
1216
1218
connected.put(connectionKey, false);
1219
+
updateConnections();
1217
1220
}
1218
1221
1219
1222
/**
1220
1223
* {@inheritDoc}
1221
1224
*/
1222
1225
@Override
1223
1226
publicvoidconnect() {
1227
+
log.info("Connecting connection from node {} to node {}", sender.selfId(), receiver.selfId());
1224
1228
connected.put(connectionKey, true);
1229
+
updateConnections();
1225
1230
}
1226
1231
1227
1232
/**
@@ -1237,6 +1242,7 @@ public boolean isConnected() {
1237
1242
*/
1238
1243
@Override
1239
1244
publicvoidrestoreConnectivity() {
1245
+
log.info("Restoring connectivity from node {} to node {}", sender.selfId(), receiver.selfId());
1240
1246
connected.remove(connectionKey);
1241
1247
restoreLatency();
1242
1248
restoreBandwidthLimit();
@@ -1257,7 +1263,9 @@ public Duration latency() {
1257
1263
@Override
1258
1264
publicvoidlatency(@NonNullfinalDurationlatency) {
1259
1265
requireNonNull(latency);
1266
+
log.info("Setting latency from node {} to node {} to {}", sender.selfId(), receiver.selfId(), latency);
0 commit comments