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

Fix flaky file watcher test #258

Merged

Conversation

sergicastro
Copy link
Collaborator

The test method waitForRead was sometimes signaling due to accumulated reads, even it was inteded to wait for a read after a new content was set in the mock file.

This fixes it by waiting to singal read happened when the read content is the same as the expected one.

The test method `waitForRead` was sometimes signaling due to accumulated
reads, even it was inteded to wait for a read after a new content was
set in the mock file.

This fixes it by waiting to singal read happened when the read content
is the same as the expected one.

Signed-off-by: Sergi Castro <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@f2ef0e4). Click here to learn what that means.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #258   +/-   ##
=======================================
  Coverage        ?   90.64%           
=======================================
  Files           ?       25           
  Lines           ?     1603           
  Branches        ?        0           
=======================================
  Hits            ?     1453           
  Misses          ?      107           
  Partials        ?       43           

@sergicastro
Copy link
Collaborator Author

I will join both methods to a single one (set and wait).

Signed-off-by: Sergi Castro <[email protected]>
@sergicastro sergicastro marked this pull request as ready for review May 14, 2024 13:51
@istio-testing istio-testing merged commit fd52e3c into istio-ecosystem:main May 14, 2024
13 checks passed
@sergicastro sergicastro deleted the flaky-file-watcher-test branch May 14, 2024 14:50
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants