Skip to content

Commit fa2bb78

Browse files
committed
Use mock debug data dumper in test
1 parent 64770ff commit fa2bb78

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: networking/eth2/src/test/java/tech/pegasys/teku/networking/eth2/gossip/topics/Eth2TopicHandlerTest.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public void handleMessage_ignore() {
104104
spec,
105105
asyncRunner,
106106
(b, __) -> SafeFuture.completedFuture(InternalValidationResult.IGNORE),
107-
null);
107+
debugDataDumper);
108108

109109
final SafeFuture<ValidationResult> result =
110110
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -210,7 +210,7 @@ public void handleMessage_errorWhileProcessing_rejectedExecution() {
210210
(b, __) -> {
211211
throw new RejectedExecutionException("No more capacity");
212212
},
213-
null);
213+
debugDataDumper);
214214

215215
final SafeFuture<ValidationResult> result =
216216
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -229,7 +229,7 @@ public void handleMessage_errorWhileProcessing_wrappedRejectedExecution() {
229229
(b, __) -> {
230230
throw new CompletionException(new RejectedExecutionException("No more capacity"));
231231
},
232-
null);
232+
debugDataDumper);
233233

234234
final SafeFuture<ValidationResult> result =
235235
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -248,7 +248,7 @@ public void handleMessage_errorWhileProcessing_rejectedExecutionWithRootCause()
248248
(b, __) -> {
249249
throw new RejectedExecutionException("No more capacity", new NullPointerException());
250250
},
251-
null);
251+
debugDataDumper);
252252

253253
final SafeFuture<ValidationResult> result =
254254
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -267,7 +267,7 @@ public void handleMessage_errorWhileProcessing_serviceCapacityExceededExecution(
267267
(b, __) -> {
268268
throw new ServiceCapacityExceededException("No more capacity");
269269
},
270-
null);
270+
debugDataDumper);
271271

272272
final SafeFuture<ValidationResult> result =
273273
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -287,7 +287,7 @@ public void handleMessage_errorWhileProcessing_wrappedServiceCapacityExceededExe
287287
throw new CompletionException(
288288
new ServiceCapacityExceededException("No more capacity"));
289289
},
290-
null);
290+
debugDataDumper);
291291

292292
final SafeFuture<ValidationResult> result =
293293
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));
@@ -306,7 +306,7 @@ public void handleMessage_errorWhileProcessing_unknownError() {
306306
(b, __) -> {
307307
throw new NullPointerException();
308308
},
309-
null);
309+
debugDataDumper);
310310

311311
final SafeFuture<ValidationResult> result =
312312
topicHandler.handleMessage(topicHandler.prepareMessage(blockBytes, Optional.empty()));

0 commit comments

Comments
 (0)