Skip to content

Commit

Permalink
Fix flaky boltkit test
Browse files Browse the repository at this point in the history
`GraphDatabaseTest#boltSchemeShouldInstantiateDirectDriver()` did not
properly close driver which resulted in sporadically failing Windows builds.
  • Loading branch information
lutovich committed May 23, 2017
1 parent ddc8cc5 commit 6d818ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ public void boltSchemeShouldInstantiateDirectDriver() throws Exception

// Then
assertThat( driver, is( directDriver() ) );
server.exit();

// Finally
driver.close();
assertThat( server.exitStatus(), equalTo( 0 ) );
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public int exitStatus() throws InterruptedException, ForceKilled
}
}

public void exit() throws InterruptedException
private void exit() throws InterruptedException
{
process.destroy();
process.waitFor();
Expand Down

0 comments on commit 6d818ba

Please sign in to comment.