-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix heisenbug and simplify tests
A heisenbug was happening in the "does not keep last written value when a new connection is established with 'init: false'" test. The test expected no samples, but got 1. This was due to how the test was structured, specifically the fact that the write and the disconnect-connect block of code were inside the same expect_execution block, causing a race condition. The tests were also simplified by using a data_reader instead of the previous, unnecessary complicated, setup.
- Loading branch information
1 parent
ab9d009
commit cc4c345
Showing
1 changed file
with
50 additions
and
90 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