Simplify test helpers, cleanup redis between tests

This commit is contained in:
David Zhao
2021-06-04 11:22:08 -07:00
parent f3006d397b
commit bf281b1994
4 changed files with 33 additions and 64 deletions
+2 -1
View File
@@ -292,7 +292,8 @@ func (c *RTCClient) Run() error {
}
func (c *RTCClient) WaitUntilConnected() error {
ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
for {
select {
case <-ctx.Done():