Skip to content

Commit 51eb516

Browse files
Added timeout to BaseTest and BenchmarksTest
The motivation is to catch tests that hang. We cannot rely on the team city timeout of 8 hours because we don't see the actual test that fails. Co-authored-by: Florentin Dörre <florentin.dorre@neotechnology.com>
1 parent 4578118 commit 51eb516

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test-utils/src/main/java/org/neo4j/gds/BaseTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
import org.assertj.core.api.Assertions;
2424
import org.intellij.lang.annotations.Language;
25+
import org.junit.jupiter.api.Timeout;
2526
import org.neo4j.gds.core.Settings;
2627
import org.neo4j.gds.extension.IdFunction;
2728
import org.neo4j.gds.extension.Inject;
@@ -38,6 +39,7 @@
3839
import java.util.ArrayList;
3940
import java.util.List;
4041
import java.util.Map;
42+
import java.util.concurrent.TimeUnit;
4143
import java.util.concurrent.atomic.AtomicLong;
4244
import java.util.function.BiConsumer;
4345
import java.util.function.Consumer;
@@ -49,6 +51,7 @@
4951

5052
@ImpermanentDbmsExtension(configurationCallback = "configuration")
5153
@Neo4jGraphExtension
54+
@Timeout(value = 30, unit = TimeUnit.MINUTES)
5255
public abstract class BaseTest {
5356

5457
protected static final String DEFAULT_GRAPH_NAME = "graph";

0 commit comments

Comments
 (0)