This commit is contained in:
parent
c85cd0bb8e
commit
096b07031a
1 changed files with 2 additions and 4 deletions
|
@ -32,11 +32,9 @@ type MockServer struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeMockServer(t *testing.T, timeout int) *MockServer {
|
func makeMockServer(t *testing.T, timeout int) *MockServer {
|
||||||
in := make(chan room.ServerMessage, 99)
|
|
||||||
out := make(chan room.BotMessage, 99)
|
|
||||||
srv := &MockServer{
|
srv := &MockServer{
|
||||||
in: in,
|
in: make(chan room.ServerMessage, 99),
|
||||||
out: out,
|
out: make(chan room.BotMessage, 99),
|
||||||
t: t,
|
t: t,
|
||||||
timeout: time.Duration(timeout) * time.Second,
|
timeout: time.Duration(timeout) * time.Second,
|
||||||
roomName: TestRoomName,
|
roomName: TestRoomName,
|
||||||
|
|
Loading…
Reference in a new issue