Skip to content

Commit 2aca384

Browse files
committed
fix(tests): Fix flaky test_snuba_data timestamp precision
Strip microseconds from the stored event timestamp since nodestore drops sub-second precision, causing a mismatch with Snuba data. Fixes #108982
1 parent 9b71753 commit 2aca384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/sentry/services/eventstore/test_models.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_snuba_data(self) -> None:
212212
"message": "Hello World!",
213213
"tags": {"logger": "foobar", "site": "foo", "server_name": "bar"},
214214
"user": {"id": "test", "email": "test@test.com"},
215-
"timestamp": before_now(seconds=1).isoformat(),
215+
"timestamp": before_now(seconds=1).replace(microsecond=0).isoformat(),
216216
},
217217
project_id=self.project.id,
218218
)

0 commit comments

Comments
 (0)