Skip to content

Commit 6b37267

Browse files
warku123claude
andcommitted
test(event): reset EventPluginLoader filterQuery before each test
Defensively clear singleton filterQuery in @before to prevent preceding tests in the same JVM batch (forkEvery=100) from leaving stale state that causes matchFilter to return false. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 12ab2c2 commit 6b37267

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

framework/src/test/java/org/tron/core/event/BlockEventGetTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public static void init() {
9090

9191
@Before
9292
public void before() throws IOException {
93+
EventPluginLoader.getInstance().setFilterQuery(null);
9394
Args.getInstance().setNodeListenPort(10000 + port.incrementAndGet());
9495

9596
dbManager = context.getBean(Manager.class);

0 commit comments

Comments
 (0)