diff options
author | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-11-26 16:50:12 +0100 |
---|---|---|
committer | Jean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com> | 2014-11-26 16:50:12 +0100 |
commit | 8059a18ae64a53b1e212e03aa91279f8b6bfeb29 (patch) | |
tree | cfc5fe918b047649d77e168b3a43b1466c6eece7 | |
parent | fddf95cc919e355cf41ce30fe2ec2ae0baaf1484 (diff) | |
download | sonarqube-8059a18ae64a53b1e212e03aa91279f8b6bfeb29.tar.gz sonarqube-8059a18ae64a53b1e212e03aa91279f8b6bfeb29.zip |
Fix DB connection leak
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java b/server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java index a41f02c20ba..b79636e89c2 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/source/index/SourceLineResultSetIteratorTest.java @@ -59,7 +59,6 @@ public class SourceLineResultSetIteratorTest { @Test public void should_generate_source_line_documents() throws Exception { db.prepareDbUnit(getClass(), "source-with-scm.xml"); - Connection connection = db.openConnection(); PreparedStatement stmt = connection.prepareStatement("UPDATE file_sources SET data = ? WHERE id=1"); stmt.setString(1, "aef12a,alice,2014-04-25T12:34:56+0100,,,,polop,class Foo {\r\n" + "abe465,bob,2014-07-25T12:34:56+0100,,,,, // Empty\r\n" + @@ -95,7 +94,6 @@ public class SourceLineResultSetIteratorTest { @Test public void should_fail_on_bad_csv() throws Exception { db.prepareDbUnit(getClass(), "source-with-scm.xml"); - Connection connection = db.openConnection(); PreparedStatement stmt = connection.prepareStatement("UPDATE file_sources SET data = ? WHERE id=1"); stmt.setString(1, "plouf"); stmt.executeUpdate(); |