Skip to content

Commit

Permalink
Use declared connection variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Biville committed May 26, 2016
1 parent f693ed3 commit 98875d0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void reads_changelog_from_graph_database() throws SQLException {
connection
);

Collection<Changeset> changesets = reader.read(graphDatabase().connection());
Collection<Changeset> changesets = reader.read(connection);

assertThat(changesets).hasSize(1);
Changeset changeset = changesets.iterator().next();
Expand Down Expand Up @@ -80,7 +80,7 @@ public void reads_changeset_with_multiple_queries() throws SQLException {
connection
);

Collection<Changeset> changesets = reader.read(graphDatabase().connection());
Collection<Changeset> changesets = reader.read(connection);

assertThat(changesets).hasSize(1);
Changeset changeset = changesets.iterator().next();
Expand Down Expand Up @@ -127,7 +127,7 @@ public void migrates_pre_1_0_rc3_changelog_before_reading() throws SQLException
connection
);

Collection<Changeset> changesets = reader.read(graphDatabase().connection());
Collection<Changeset> changesets = reader.read(connection);

assertThat(changesets).hasSize(3);
for (Changeset changeset : changesets) {
Expand Down

0 comments on commit 98875d0

Please sign in to comment.