Closed KianYang-Lee closed 1 month ago
@KianYang-Lee could you give a link to test you mean, I see only protection selects that help us to not wait forever on a signal and fail test faster
@ksysoev for example this https://github.com/ksysoev/wasabi/blob/main/server/server_test.go#L85-L117 . We can just wait on ready
chan . Makes for better readability
let me make a PR and you can see better
implemented in #62
Current
server_test
package contains test that relies ontime.Sleep
to wait server to be ready for accepting connection. Hope to refactor these test to use theready
channel of server for better readability. I can open a PR to refactor these tests