Make channels buffered otherwise it will hang
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4a521f595d
commit
6c6a8a843d
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ type MockServer struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeMockServer() *MockServer {
|
func makeMockServer() *MockServer {
|
||||||
in := make(chan room.ServerMessage)
|
in := make(chan room.ServerMessage, 99)
|
||||||
out := make(chan room.BotMessage)
|
out := make(chan room.BotMessage, 99)
|
||||||
srv := &MockServer{
|
srv := &MockServer{
|
||||||
in: in,
|
in: in,
|
||||||
out: out,
|
out: out,
|
||||||
|
|
Loading…
Reference in a new issue