Skip to content

Commit e3f7bfe

Browse files
committed
now resetting num times created in integtests
1 parent 388aeec commit e3f7bfe

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

env/tests/integtest_pg_conn.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class PostgresConnTests(unittest.TestCase):
1919
@staticmethod
2020
def setUpClass() -> None:
2121
GymlibIntegtestManager.set_up_workspace()
22+
# Reset _num_times_created_this_run since previous tests may have created a workspace.
23+
DBGymWorkspace._num_times_created_this_run = 0
2224
PostgresConnTests.workspace = DBGymWorkspace(
2325
GymlibIntegtestManager.get_workspace_path()
2426
)

env/tests/integtest_replay.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class ReplayTests(unittest.TestCase):
1919
@staticmethod
2020
def setUpClass() -> None:
2121
GymlibIntegtestManager.set_up_workspace()
22+
# Reset _num_times_created_this_run since previous tests may have created a workspace.
23+
DBGymWorkspace._num_times_created_this_run = 0
2224
ReplayTests.workspace = DBGymWorkspace(
2325
GymlibIntegtestManager.get_workspace_path()
2426
)

env/tests/integtest_workload.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class WorkloadTests(unittest.TestCase):
1212
@staticmethod
1313
def setUpClass() -> None:
1414
GymlibIntegtestManager.set_up_workspace()
15+
# Reset _num_times_created_this_run since previous tests may have created a workspace.
16+
DBGymWorkspace._num_times_created_this_run = 0
1517
WorkloadTests.workspace = DBGymWorkspace(
1618
GymlibIntegtestManager.get_workspace_path()
1719
)

0 commit comments

Comments
 (0)