Skip to content

Commit 510ca48

Browse files
committed
Fix Pooling test_get_session on macos
1 parent 0361034 commit 510ca48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_mysqlx_pooling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def test_get_session(self):
235235
session = client.get_session()
236236
self.assertTrue(isinstance(session, mysqlx.connection.Session))
237237
sessions.append(session)
238-
238+
sleep(0.5)
239239
# Verify the number of connections open in the server
240240
connections = get_current_connections(old_session)
241241
self.assertEqual(len(connections[self.users[0][0]]), total_connections)
@@ -244,6 +244,7 @@ def test_get_session(self):
244244
# to the pool instead of being closed
245245
sessions[5].close()
246246
sessions[9].close()
247+
sleep(0.5)
247248
connections = get_current_connections(old_session)
248249
self.assertTrue(len(connections[self.users[0][0]]) >=
249250
(total_connections - 2))

0 commit comments

Comments
 (0)