Closed
Bug 1216853
Opened 10 years ago
Closed 10 years ago
B2G RIL: chain promises properly in test_network_interface_mtu.js
Categories
(Firefox OS Graveyard :: RIL, defect)
Tracking
(firefox44 fixed)
RESOLVED
FIXED
FxOS-S10 (30Oct)
| Tracking | Status | |
|---|---|---|
| firefox44 | --- | fixed |
People
(Reporter: jessica, Assigned: jessica)
Details
Attachments
(1 file, 1 obsolete file)
|
2.38 KB,
patch
|
jessica
:
review+
|
Details | Diff | Splinter Review |
I get timeout sometimes on this test when running locally. The reason seems to be that promises are not chained properly.
| Assignee | ||
Comment 1•10 years ago
|
||
| Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8676609 [details] [diff] [review]
patch.
Edgar, may I have your review on this? Thanks.
try:
https://treeherder.allizom.org/#/jobs?repo=try&revision=91f9ca461cc8&exclusion_profile=false
Attachment #8676609 -
Flags: review?(echen)
Comment 3•10 years ago
|
||
Comment on attachment 8676609 [details] [diff] [review]
patch.
Review of attachment 8676609 [details] [diff] [review]:
-----------------------------------------------------------------
Good catch, thank you.
::: dom/system/gonk/tests/marionette/test_network_interface_mtu.js
@@ +59,5 @@
> log("= testDefaultDataCallMtu =");
>
> return setDataEnabledAndWait(true)
> .then(aNetworkInfo => {
> + return verifyMtu(aNetworkInfo.name, TEST_MTU1);
Or you can just remove the parentheses, for example
.then(aNetworkInfo => verifyMtu(aNetworkInfo.name, TEST_MTU1))
Attachment #8676609 -
Flags: review?(echen) → review+
| Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Edgar Chen [:edgar][:echen] from comment #3)
> Comment on attachment 8676609 [details] [diff] [review]
> patch.
>
> Review of attachment 8676609 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Good catch, thank you.
>
> ::: dom/system/gonk/tests/marionette/test_network_interface_mtu.js
> @@ +59,5 @@
> > log("= testDefaultDataCallMtu =");
> >
> > return setDataEnabledAndWait(true)
> > .then(aNetworkInfo => {
> > + return verifyMtu(aNetworkInfo.name, TEST_MTU1);
>
> Or you can just remove the parentheses, for example
>
> .then(aNetworkInfo => verifyMtu(aNetworkInfo.name, TEST_MTU1))
even better, thanks!
| Assignee | ||
Comment 5•10 years ago
|
||
Attachment #8676609 -
Attachment is obsolete: true
Attachment #8677269 -
Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → FxOS-S10 (30Oct)
You need to log in
before you can comment on or make changes to this bug.
Description
•