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

rpcsrv: allow one-block slippage in TestWSClient_SubscriptionsCompat #3397

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

AnnaShaleva
Copy link
Member

Close #2956. The failure reason is similar to the one described in #3396 for TestNotary: Blockchain's notificationDispatcher is listening to block events from storeBlock via separate channel. By the moment single block addition is finished, notification may or may not be properly handled by notificationDispatcher, especially given the fact that our runners are slow. As a result, assert.Eventually with 1-second awaiting period may fail. This issue is solved by adding one more block, because the second AddBlock finishes only when it sends block addition event to notificationDispatcher loop, which means that the previous event was handled.

@AnnaShaleva AnnaShaleva marked this pull request as draft April 4, 2024 08:01
Close #2956. The failure reason is similar to the one described in #3396
for TestNotary: Blockchain's notificationDispatcher is listening to
block events from storeBlock via separate channel. By the moment single
block addition is finished, notification may or may not be properly
handled by notificationDispatcher, especially given the fact that our
runners are slow. As a result, assert.Eventually with 1-second awaiting
period may fail. This issue is solved by adding one more block, because
the second AddBlock finishes only when it sends block addition event to
notificationDispatcher loop, which means that the previous event was
handled.

Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
@AnnaShaleva AnnaShaleva force-pushed the fix-TestWSClient_SubscriptionsCompat branch from 90c9fa4 to ef3ec19 Compare April 4, 2024 08:02
@AnnaShaleva AnnaShaleva marked this pull request as ready for review April 4, 2024 08:03
Copy link

codecov bot commented Apr 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (b1a986f) to head (ef3ec19).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3397   +/-   ##
=======================================
  Coverage   84.79%   84.80%           
=======================================
  Files         331      331           
  Lines       44972    44972           
=======================================
+ Hits        38134    38138    +4     
+ Misses       5326     5323    -3     
+ Partials     1512     1511    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AnnaShaleva
Copy link
Member Author

Windows tests are failing, but due to other issue. Ref. #3378 (comment).

@roman-khimov roman-khimov merged commit 22af33a into master Apr 4, 2024
27 of 29 checks passed
@roman-khimov roman-khimov deleted the fix-TestWSClient_SubscriptionsCompat branch April 4, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failing Windows subscriptions test
2 participants