Skip to content

Commit 05a237e

Browse files
committed
PYTHON-4925 Fix MockPool heartbeat tests
1 parent c50bb11 commit 05a237e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import copy
2121
import functools
2222
import os
23+
import random
2324
import re
2425
import shutil
2526
import sys
@@ -309,6 +310,7 @@ class MockConnection:
309310
def __init__(self):
310311
self.cancel_context = _CancellationContext()
311312
self.more_to_come = False
313+
self.id = random.randint(0, 100)
312314

313315
def close_conn(self, reason):
314316
pass

0 commit comments

Comments
 (0)