Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix 'saveable' test-case #8736

Merged
merged 1 commit into from
Nov 10, 2020
Merged

ci: fix 'saveable' test-case #8736

merged 1 commit into from
Nov 10, 2020

Conversation

vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Nov 9, 2020

What it does

Fixes: #8681

The following pull-request fixes an issue with the saveable.spec.js api test which failed due to an ADDED/DELETED event which NSFW did not report properly (since it was performed in quick succession - related #2566).

The main issue is the following use-case:

  1. delete file for saved test deletes a file
  2. beforeEach creates a file and delete and add again file for dirty deletes the file again in quick succession
  3. nsfw does not emit the deleted event properly, resulting in the widget being disposed widget.title.changed.disconnect(listener); making the await waitForDidChangeTitle.promise; hang.

How to test

Verify that the saveable api-tests successfully pass on CI.

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com

@vince-fugnitto vince-fugnitto added ci issues related to CI / tests file-watchers issues related to filesystem watchers - nsfw labels Nov 9, 2020
@vince-fugnitto vince-fugnitto self-assigned this Nov 9, 2020
@vince-fugnitto vince-fugnitto marked this pull request as ready for review November 10, 2020 16:04
The following commit fixes an issue with the `saveable.spec.js` api
test, where due to a quick `ADDED/DELETE` event, NSFW was not properly
notified of the event, causing the test to fail when attempting to
verify its assertions, namely when verifying if the title has been
updated.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto
Copy link
Member Author

Amended PR to re-test passing CI.

@vince-fugnitto
Copy link
Member Author

Hopefully this pull-request helps stabilize CI a bit. There are still some sporadic failures in the typescript suite regarding some monaco overlays (which is the case for some time) but the overall suite should be more stable.

@vince-fugnitto vince-fugnitto merged commit 2af8b07 into master Nov 10, 2020
@vince-fugnitto vince-fugnitto deleted the vf/ci-fix branch November 10, 2020 23:01
@github-actions github-actions bot added this to the 1.8.0 milestone Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci issues related to CI / tests file-watchers issues related to filesystem watchers - nsfw
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: stabilize 'api tests' on build
2 participants