Skip to content

Commit 07b28ca

Browse files
committed
[H2] Remove environment check in test
1 parent 05fb96e commit 07b28ca

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ jobs:
268268
- name: Build SQLancer
269269
run: mvn -B package -DskipTests=true
270270
- name: Run Tests
271-
run: H2_AVAILABLE=true mvn -Dtest=TestH2 test
271+
run: mvn -Dtest=TestH2 test
272272

273273
hsqldb:
274274
name: DBMS Tests (HSQLB)

test/sqlancer/dbms/TestH2.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package sqlancer.dbms;
22

33
import static org.junit.jupiter.api.Assertions.assertEquals;
4-
import static org.junit.jupiter.api.Assumptions.assumeTrue;
54

65
import org.junit.jupiter.api.Test;
76

@@ -11,9 +10,6 @@ public class TestH2 {
1110

1211
@Test
1312
public void testH2DB() {
14-
String h2Available = System.getenv("H2_AVAILABLE");
15-
boolean h2DBIsAvailable = h2Available != null && h2Available.equalsIgnoreCase("true");
16-
assumeTrue(h2DBIsAvailable);
1713
assertEquals(0, Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
1814
"--num-threads", "4", "--num-queries", TestConfig.NUM_QUERIES, "h2" }));
1915

0 commit comments

Comments
 (0)