From c09950b62732dc36b090e57928bd98f3839db78a Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 8 Dec 2017 10:37:58 -0800 Subject: [PATCH] Spanner: clean up databases after use --- spanner/tests/system/test_system.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spanner/tests/system/test_system.py b/spanner/tests/system/test_system.py index f2cc4ca7e85b..99442ef3bafd 100644 --- a/spanner/tests/system/test_system.py +++ b/spanner/tests/system/test_system.py @@ -118,6 +118,9 @@ def setUpModule(): def tearDownModule(): if CREATE_INSTANCE: Config.INSTANCE.delete() + else: + for database in Config.INSTANCE.list_databases(): + database.drop() class TestInstanceAdminAPI(unittest.TestCase):