-
Notifications
You must be signed in to change notification settings - Fork 735
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
Various test clean ups #1145
Various test clean ups #1145
Commits on Nov 22, 2019
-
Remove assert_ok macro from test utils
The unwrap function has the same effect.
Configuration menu - View commit details
-
Copy full SHA for d0bd954 - Browse repository at this point
Copy the full SHA d0bd954View commit details -
Remove assert_err macro from test utils
The unwrap_err function has the same effect.
Configuration menu - View commit details
-
Copy full SHA for 73cc2f5 - Browse repository at this point
Copy the full SHA 73cc2f5View commit details -
Add Readiness type to test utilities
Used in the ExpectEvent structure.
Configuration menu - View commit details
-
Copy full SHA for 1c92c0b - Browse repository at this point
Copy the full SHA 1c92c0bView commit details -
Replace expect_readiness macro with expect_events
Removing expect_readiness completely. It didn't use the token so it was unclear what event should have read/write closed indicators.
Configuration menu - View commit details
-
Copy full SHA for eda2b34 - Browse repository at this point
Copy the full SHA eda2b34View commit details -
Remote TryWrite and TryRead traits from test utilies
This also removes the echo_server test from the tcp module. All functionality is tested elsewhere and this test is just too complex to attempt to fix (it used the TryRead and TryWrite traits).
Configuration menu - View commit details
-
Copy full SHA for a88506d - Browse repository at this point
Copy the full SHA a88506dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88e31d8 - Browse repository at this point
Copy the full SHA 88e31d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f49f315 - Browse repository at this point
Copy the full SHA f49f315View commit details -
Add checked_write macro the test utilities
Some places checked the return value after a write, but all. This ensure that all write, send and send_to calls check the return value.
Configuration menu - View commit details
-
Copy full SHA for 892f856 - Browse repository at this point
Copy the full SHA 892f856View commit details -
Testing macro that calls read/recv/peek or recv_from/peek_from and checks if the received bytes are expected. In case of {recv,peek}_from it also checks the source address.
Configuration menu - View commit details
-
Copy full SHA for 9025e98 - Browse repository at this point
Copy the full SHA 9025e98View commit details