Closed Bug 976182 Opened 10 years ago Closed 10 years ago

ICE connection Mochitest can result in test timeout

Categories

(Core :: WebRTC: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: drno, Assigned: drno)

Details

Attachments

(1 file, 1 obsolete file)

The new ICE connection tests in media/dom/tests/mochitest can block further test execution if the initial connection state is in "failed" already.
Assignee: nobody → drno
Attachment #8380786 - Flags: review?(docfaraday)
Comment on attachment 8380786 [details] [diff] [review]
ice_connection_state_failed.patch

Review of attachment 8380786 [details] [diff] [review]:
-----------------------------------------------------------------

This will do the job, although it will break if we start returning stuff like "disconnected" or "closed" someday. We could bail if we aren't in either "new" or "checking" instead. Or we could leave a note or something. Up to you.

::: dom/media/tests/mochitest/pc.js
@@ +1467,5 @@
>  
>    /**
> +   * Returns if the ICE the connection state is "failed".
> +   *
> +   * @returns {boolean} True is the connection state is "failed", otherwise false.

Minor typo, s/is/if/. Seems to show up other places.
Attachment #8380786 - Flags: review?(docfaraday) → review+
Attachment #8380786 - Attachment is obsolete: true
This patch should address bwc's concerns about the ICE states as well as the NITs in the comments.
Attachment #8385024 - Flags: review?(docfaraday)
Comment on attachment 8385024 [details] [diff] [review]
ice_connection_state_failed.patch

Review of attachment 8385024 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #8385024 - Flags: review?(docfaraday) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/4246950b826f
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: