Skip to content

Commit 41a56e0

Browse files
committed
non round time mocking
Signed-off-by: Saurabh Misra <[email protected]>
1 parent de9837a commit 41a56e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

codeflash/verification/pytest_plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ def _apply_deterministic_patches() -> None:
9898
_original_random = random.random
9999

100100
# Fixed deterministic values
101-
fixed_timestamp = 1609459200.0 # 2021-01-01 00:00:00 UTC
102-
fixed_datetime = datetime.datetime(2021, 1, 1, 0, 0, 0, tzinfo=datetime.timezone.utc)
101+
fixed_timestamp = 1761717605.108106
102+
fixed_datetime = datetime.datetime(2021, 1, 1, 2, 5, 10, tzinfo=datetime.timezone.utc)
103103
fixed_uuid = uuid.UUID("12345678-1234-5678-9abc-123456789012")
104104

105105
# Counter for perf_counter to maintain relative timing

0 commit comments

Comments
 (0)