Skip to content

Commit de94a65

Browse files
committed
fix(ci): stabilize events v2 tests
1 parent 04607c1 commit de94a65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

specs/monitor/events_v2_spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
expect((ok, res)).to(be_successful_api_call)
4848
expect(res).to(have_key("events"))
4949
expect(res["events"]).to(
50-
contain(have_key("scope", equal("host.hostName = 'ci'")))
50+
contain(have_key("scope", equal("host_hostName = 'ci'")))
5151
)
5252

5353
with it("is able to retrieve an event by ID"):
@@ -56,6 +56,7 @@
5656
description="This event was created in a CI pipeline for the Python SDK library",
5757
)
5858
expect((ok, res)).to(be_successful_api_call)
59+
time.sleep(5) # Wait for the API to stabilize the events
5960

6061
event = res["event"]
6162
event_id = event["id"]

0 commit comments

Comments
 (0)