Skip to content

Commit

Permalink
lower session_reclaim_interval_secs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiee committed Feb 6, 2023
1 parent 326757a commit 076a0b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,18 @@ def get_local_session(pool):
def test_2_reconnect(self):
try:
session = self.pool.get_session('root', 'nebula')
# wait for the session update
time.sleep(2)

# wait for the session space info to be updated to meta service
session.execute(
'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;'
)
time.sleep(10)
time.sleep(6)
for i in range(0, 5):
if i == 3:
os.system('docker stop tests_graphd0_1')
os.system('docker stop tests_graphd1_1')
time.sleep(3)
# the session update later, the expect test
# resp = session.execute('SHOW TAGS')
time.sleep(1)
resp = session.execute('SHOW SESSIONS')
assert resp.is_succeeded(), resp.error_msg()
assert resp.space_name() == 'test_session'
Expand All @@ -70,7 +69,7 @@ def test_2_reconnect(self):
finally:
os.system('docker start tests_graphd0_1')
os.system('docker start tests_graphd1_1')
time.sleep(5)
time.sleep(2)

def test_3_session_context(self):
in_used_connects = self.pool.in_used_connects()
Expand Down

0 comments on commit 076a0b9

Please sign in to comment.