File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
deobfuscator-impl/src/test/java/uwu/narumi/deobfuscator/base Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1111import org .junit .jupiter .api .DisplayName ;
1212import org .junit .jupiter .api .DynamicTest ;
1313import org .junit .jupiter .api .TestFactory ;
14- import org .junit .jupiter .api .Timeout ;
1514import org .opentest4j .TestAbortedException ;
1615import uwu .narumi .deobfuscator .Deobfuscator ;
1716import uwu .narumi .deobfuscator .api .context .DeobfuscatorOptions ;
2019
2120import java .nio .file .Files ;
2221import java .nio .file .Path ;
22+ import java .time .Duration ;
2323import java .util .ArrayList ;
2424import java .util .List ;
2525import java .util .function .Supplier ;
2626import java .util .stream .Stream ;
2727
28- @ Timeout (60 )
28+ import static org .junit .jupiter .api .Assertions .*;
29+
2930public abstract class TestDeobfuscationBase {
3031 public static final Path TEST_DATA_PATH = Path .of (".." , "testData" );
3132 public static final Path COMPILED_PATH = TEST_DATA_PATH .resolve ("compiled" );
@@ -73,7 +74,8 @@ public record RegisteredTest(
7374 * Build test
7475 */
7576 public DynamicTest buildTest () {
76- return DynamicTest .dynamicTest (this .testName , this ::runTest );
77+ return DynamicTest .dynamicTest (this .testName ,
78+ () -> assertTimeoutPreemptively (Duration .ofSeconds (300 ), this ::runTest ));
7779 }
7880
7981 /**
You can’t perform that action at this time.
0 commit comments