Closed Bug 1754981 Opened 2 years ago Closed 2 years ago

[wdspec] BiDi tests should use "asyncio.sleep()" and not "time.sleep() which blocks

Categories

(Testing :: geckodriver, defect, P2)

defect
Points:
1

Tracking

(firefox99 fixed)

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

Details

(Whiteboard: [bidi-m3-mvp], [wptsync upstream])

Attachments

(1 file)

Julian noticed that when reviewing my code for bug 1694389.

Using time.sleep() will block and not allow the tests to handle incoming events. As such tests don't really test what we expect them to test.

Instead await asyncio.sleep() should be used. Affected tests here are for log.entryAdded.

Points: --- → 1
Priority: -- → P2
Severity: -- → S3
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Pushed by hskupin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ecab2a7d150f
[wdspec] Use "asyncio.sleep()" and not "time.sleep() which blocks. r=webdriver-reviewers,jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/32870 for changes under testing/web-platform/tests
Whiteboard: [bidi-m3-mvp] → [bidi-m3-mvp], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: