-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Improve websocket parser tests
Currently websocket parser tests are done within general websocket server test that involves network operations. This is wrong way to test websocket parser because it involves unnecessary code and is harder to control. For example, currently there is a race condition which is resolved by sleeping by 100ms. The solution is to extract the parser test to separate function. The test is additionally improved to test more than one websocket payload at the same time. Co-authored-by: Dave Voutila <[email protected]> Closes #2562
- Loading branch information
Showing
1 changed file
with
79 additions
and
22 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