Skip to content

Commit

Permalink
#729 - Ensure test schema is commited into the DB before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcabral committed Jun 23, 2018
1 parent 9040254 commit c397f63
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ public abstract class ActiveJDBCTest implements JSpecSupport {
@Before
public final void before() throws Exception {
Base.open(driver(), url(), user(), password());
Base.connection().setAutoCommit(false);

synchronized(this) {
if (!schemaGenerated) {
generateSchema();
schemaGenerated = true;
System.out.println("DB: " + db() + ", Driver: " + driver());
}
}
Base.connection().setAutoCommit(false);
}

@After
Expand Down

0 comments on commit c397f63

Please sign in to comment.