forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base1: Drop jQuery usage from test-chan
This test previously failed with the standard JS EventListener API, as with that the registered listeners get called asynchronously, while with jQuery they got called synchronously. This caused send() to _first_ call the fallback MockPeer.onrecv() echo implementation, and _then_ the registered "real" recv handler. Thus the former sent wrong and unexpected replies. To fix that, postpone onrecv()'s own reply sending, so that the event listeners have a chance to run first. Adjust the number of expected messages in "filter message in" for that, as this now does not see MockPeer.onrecv()'s standard reply any more. This was the last jQuery consumer in the unit tests (and all of base1), so drop the jquery bundling hack as well. Closes cockpit-project#14918
- Loading branch information
1 parent
93307fd
commit 66e283f
Showing
2 changed files
with
34 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters