Refactor Websocket tests #357
Labels
good first issue
Good for newcomers
help wanted
Contributions are welcome
refactoring
Refactoring task
tests
Improvements or additions to tests
Milestone
After introducing new chain.assert() method, we can simplify many websocket tests.
In
websocket_test.go
, find all table-driven tests that haveassertOk
field and refactor them as follows:replace
assertOk bool
withresult chainResult
instead of
assertOk: true
, useresult: success
instead of
assertOk: false
, useresult: failure
instead of:
use:
The text was updated successfully, but these errors were encountered: