-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: improve reliability of events verification
Add a fsync operation inside the fake device gateway used for testing, and also add a delay before reading the generated events file, and also before resetting the events list. The delay is required because the sending of events inside aklite is not done synchronously. A ReportQueue flush is forced on LiteClient destruction, but we keep an instance active during the test procedure. Signed-off-by: Andre Detsch <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
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