diff --git a/tests/system-test/0-others/grant.py b/tests/system-test/0-others/grant.py index 9e54d9ca37..b5c77937ef 100644 --- a/tests/system-test/0-others/grant.py +++ b/tests/system-test/0-others/grant.py @@ -186,7 +186,8 @@ class TDTestCase: raise Exception(repr(e)) finally: if infoFile: - infoFile.close() + infoFile.flush() + # close() def s3_check_show_grants_granted(self): tdLog.printNoPrefix("======== test show grants granted: ")