Skip to content

Commit 2b09e79

Browse files
committed
fixing flaky test
1 parent 5353953 commit 2b09e79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/unit/test_http_retries.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from datetime import datetime
22
from typing import Any, Callable
33
from unittest import mock
4+
from uuid import uuid4
45

56
import pytest
67
from groundlight import Groundlight
@@ -9,7 +10,7 @@
910
from model import Detector
1011

1112
DEFAULT_CONFIDENCE_THRESHOLD = 0.9
12-
DETECTOR_NAME = f"test detector_{datetime.utcnow().strftime('%Y=%m-%d %H:%M:%S')}"
13+
DETECTOR_NAME = f"test detector_{datetime.utcnow().strftime('%Y=%m-%d %H:%M:%S')}_{uuid4().hex[:8]}"
1314
TOTAL_RETRIES = 3
1415
STATUS_CODES = range(500, 505)
1516
IMAGE_FILE = "test/assets/dog.jpeg"

0 commit comments

Comments
 (0)