This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch select-into
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/select-into by this push:
     new 01552f6  close dataset after tests
01552f6 is described below

commit 01552f6512893bb319943fc10da6682a8717c7b0
Author: Steve Yurong Su <[email protected]>
AuthorDate: Thu Jul 22 16:15:14 2021 +0800

    close dataset after tests
---
 .../test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java 
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java
index 5bbb308..1d2fdf0 100644
--- 
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java
+++ 
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBSelectIntoIT.java
@@ -161,6 +161,7 @@ public class IoTDBSelectIntoIT {
       }
 
       assertFalse(resultSet.next());
+      resultSet.close();
     } catch (SQLException throwable) {
       fail(throwable.getMessage());
     }
@@ -191,6 +192,7 @@ public class IoTDBSelectIntoIT {
       }
 
       assertFalse(resultSet.next());
+      resultSet.close();
     } catch (SQLException throwable) {
       fail(throwable.getMessage());
     }
@@ -207,6 +209,7 @@ public class IoTDBSelectIntoIT {
 
       assertEquals(1, resultSet.getMetaData().getColumnCount());
       assertFalse(resultSet.next());
+      resultSet.close();
     } catch (SQLException throwable) {
       throwable.printStackTrace();
       fail(throwable.getMessage());
@@ -232,6 +235,7 @@ public class IoTDBSelectIntoIT {
       }
 
       assertFalse(resultSet.next());
+      resultSet.close();
     } catch (SQLException throwable) {
       fail(throwable.getMessage());
     }
@@ -303,6 +307,7 @@ public class IoTDBSelectIntoIT {
       ResultSet resultSet = statement.executeQuery("select sg.d1.s1, d1.sg.s1 
from root");
       assertEquals(1, resultSet.getMetaData().getColumnCount());
       assertFalse(resultSet.next());
+      resultSet.close();
       fail();
     } catch (SQLException throwable) {
       assertTrue(

Reply via email to