Closed Bug 1578420 Opened 5 years ago Closed 5 years ago

Fix bogus test_reload in test_delay_update_webextension.js

Categories

(Toolkit :: Add-ons Manager, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: zombie, Assigned: zombie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

I found this while working on https://phabricator.services.mozilla.com/D44368#inline-270225

The test finishes before the runtime.reload() call takes effect, effectively testing nothing.

The await extension.awaitStartup() line is returning immediately because it's awaiting the already resolved promise from the first extension startup from the top of the test.

https://searchfox.org/mozilla-central/rev/e04021f2/toolkit/mozapps/extensions/test/xpcshell/test_delay_update_webextension.js#372

Adding a wait of 1 second leaves time for extension to restart and to send the "ready" message again.

Assignee: nobody → tomica
Priority: -- → P3
Blocks: 1577498
Pushed by tjovanovic@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/62de619a3d75
Fix test_delay_update_webextension to actually wait for extension startup after restart r=robwu
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

Hello,
Will this fix require manual validation or is it covered by automated tests? If yes, please provide some steps to reproduce in order to correctly test it and also, please set the "qe-verify+" flag.
Otherwise, could the "qe-verify-" flag be added? Thank you.

Flags: needinfo?(tomica)

Not needed, thanks.

For future reference, test-only changes can't have a visible effect in product, so manual verification is not possible, and so obviously never needed.

Flags: qe-verify-
Flags: needinfo?(tomica)
Flags: needinfo?(mcurtean)

It did seem rather obvious but we needed the confirmation and for the issue to have that flag, otherwise it would continue to show up in our queries containing work to be done.
Thank you for the details.

Flags: needinfo?(mcurtean)
Blocks: 1595186
No longer blocks: 1595186
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: