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 cb3da73  try to fix ci
cb3da73 is described below

commit cb3da734a666d96d892febbcbb23e1c221577aca
Author: Steve Yurong Su <[email protected]>
AuthorDate: Thu Jul 22 16:28:08 2021 +0800

    try to fix ci
---
 .../apache/iotdb/db/query/control/TracingManagerTest.java    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/server/src/test/java/org/apache/iotdb/db/query/control/TracingManagerTest.java
 
b/server/src/test/java/org/apache/iotdb/db/query/control/TracingManagerTest.java
index acb40e6..67665e0 100644
--- 
a/server/src/test/java/org/apache/iotdb/db/query/control/TracingManagerTest.java
+++ 
b/server/src/test/java/org/apache/iotdb/db/query/control/TracingManagerTest.java
@@ -100,13 +100,13 @@ public class TracingManagerTest {
 
     File tracingFile =
         SystemFileFactory.INSTANCE.getFile(tracingDir + File.separator + 
IoTDBConstant.TRACING_LOG);
-    BufferedReader bufferedReader = new BufferedReader(new 
FileReader(tracingFile));
-    String str;
-    int cnt = 0;
-    while ((str = bufferedReader.readLine()) != null) {
-      Assert.assertTrue(str.contains(ans[cnt++]));
+    try (BufferedReader bufferedReader = new BufferedReader(new 
FileReader(tracingFile))) {
+      String str;
+      int cnt = 0;
+      while ((str = bufferedReader.readLine()) != null) {
+        Assert.assertTrue(str.contains(ans[cnt++]));
+      }
     }
-    bufferedReader.close();
   }
 
   void prepareTsFileResources() {

Reply via email to