@@ -78,6 +78,7 @@ async def test_positive_latency(mock_aioresponses):
7878 "common" : {
7979 # Different source commit.
8080 "id" : "7a50f5506e0a3e4a28e6761645da6e3e1276a5cc" , # pragma: allowlist secret
81+ # Latest commit date is within lag margin.
8182 "datetime" : "2025-02-25T18:02:02Z" ,
8283 }
8384 },
@@ -90,12 +91,7 @@ async def test_positive_latency(mock_aioresponses):
9091 payload = GITHUB_EXAMPLE_COMMIT ,
9192 )
9293
93- # Less than 30min after commit was made.
94- fake_now = datetime (2025 , 2 , 25 , 18 , 30 , 0 , tzinfo = timezone .utc )
95- with mock .patch (
96- "checks.remotesettings.git_reader_commit.utcnow" , return_value = fake_now
97- ):
98- status , data = await run (server = url , repo = "mozilla/remote-settings-data" )
94+ status , data = await run (server = url , repo = "mozilla/remote-settings-data" )
9995
10096 assert status is True
10197 assert (
@@ -123,7 +119,7 @@ async def test_negative(mock_aioresponses):
123119 "common" : {
124120 # Different source commit.
125121 "id" : "7a50f5506e0a3e4a28e6761645da6e3e1276a5cc" , # pragma: allowlist secret
126- "datetime" : "2025-02-25T18 :02:02Z" ,
122+ "datetime" : "2025-02-25T17 :02:02Z" ,
127123 }
128124 },
129125 },
@@ -147,7 +143,7 @@ async def test_negative(mock_aioresponses):
147143 },
148144 "source_commit" : {
149145 "sha" : "7a50f5506e0a3e4a28e6761645da6e3e1276a5cc" , # pragma: allowlist secret
150- "date" : "2025-02-25T18 :02:02Z" ,
146+ "date" : "2025-02-25T17 :02:02Z" ,
151147 },
152148 }
153149 )
0 commit comments