Skip to content

Commit

Permalink
Attempt to fix something 7
Browse files Browse the repository at this point in the history
  • Loading branch information
nck-mlcnv committed Jul 5, 2024
1 parent bd4669f commit 26867ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Testing the Java code
run: mvn package & { sleep 20; jstack -l -e $(jps | grep surefire | awk -F ' ' '{print $1}') > jstack.log; }
- uses: actions/upload-artifact@v4
with:
name: thread-dump
path: jstack.log
run: mvn package

# Only run for pull request on main or if pushed to develop
compile_native:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public class SPARQLProtocolWorkerTest {
public static void setup() throws IOException {
queryFile = Files.createTempFile("iguana-test-queries", ".tmp");
Files.writeString(queryFile, QUERY, StandardCharsets.UTF_8);
SPARQLProtocolWorker.initHttpClient(1);
}

@BeforeEach
public void reset() {
SPARQLProtocolWorker.initHttpClient(1);
wm.resetMappings(); // reset stubbing maps after each test
}

Expand All @@ -83,6 +83,12 @@ public static void cleanup() throws IOException {
SPARQLProtocolWorker.closeHttpClient();
}

@AfterEach
public void verify() {
wm.resetAll();
SPARQLProtocolWorker.closeHttpClient();
}

public static Stream<Arguments> requestFactoryData() throws URISyntaxException {
final var uri = new URI("http://localhost:" + wm.getPort() + "/ds/query");

Expand Down

0 comments on commit 26867ad

Please sign in to comment.