Make ws server drop connection
Related tasks
Context
Once the mutex for topics was introduced, the TestTransporterListenDontPanicWSClosed
test case failed, and a race condition was detected in the conn
variable.
Change
- Remove duplicated test case: Both tests cases included the exact same test logic.
- Call
Close
fromserver
instead ofconn
: This will allow us to mimic the same behavior as before but avoiding a race condition
Other information
There are still some test runs that fail with the broken pipe
error on listen_test.go:39
Additional documentation
Edited by Marcos Huck