From 6370425ca555c6a9aaf2ebcf5f6e71308b757116 Mon Sep 17 00:00:00 2001 From: Gaurav Ahuja Date: Thu, 10 Oct 2024 14:48:22 +0530 Subject: [PATCH] Skip blockchain reference tests with no transactions (#1403) * Skip blockchain reference tests with no transactions * Fix spotless --- .../java/net/consensys/linea/BlockchainReferenceTestTools.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference-tests/src/test/java/net/consensys/linea/BlockchainReferenceTestTools.java b/reference-tests/src/test/java/net/consensys/linea/BlockchainReferenceTestTools.java index 6355433844..17d4111be6 100644 --- a/reference-tests/src/test/java/net/consensys/linea/BlockchainReferenceTestTools.java +++ b/reference-tests/src/test/java/net/consensys/linea/BlockchainReferenceTestTools.java @@ -185,7 +185,8 @@ public static void executeTest(final BlockchainReferenceTestCaseSpec spec) { zkTracer.traceStartConflation(spec.getCandidateBlocks().length); for (var candidateBlock : spec.getCandidateBlocks()) { - if (!candidateBlock.isExecutable()) { + if (!candidateBlock.isExecutable() + || candidateBlock.getBlock().getBody().getTransactions().isEmpty()) { return; }