Skip to content

Commit

Permalink
fix: concurrent mode will throw error on test
Browse files Browse the repository at this point in the history
  • Loading branch information
teletha committed Oct 13, 2024
1 parent e652240 commit 3ed2a9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/bee/api/DependencyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;

import antibug.CleanRoom;
import bee.BlinkProject;
import psychopath.Locator;

@Execution(ExecutionMode.SAME_THREAD)
class DependencyTest {

@RegisterExtension
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/bee/api/LibraryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.api.parallel.Execution;
import org.junit.jupiter.api.parallel.ExecutionMode;

import antibug.CleanRoom;
import bee.BlinkProject;
import psychopath.Locator;

@Execution(ExecutionMode.SAME_THREAD)
class LibraryTest {

@RegisterExtension
Expand Down

0 comments on commit 3ed2a9c

Please sign in to comment.