This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -33,7 +34,7 @@ func newTestRouter(t *testing.T) (*RedisRouter, *miniredis.Miniredis) {
|
||||
Addr: mr.Addr(),
|
||||
}),
|
||||
InvitationTimeout: 3600,
|
||||
Context: nil,
|
||||
Context: context.Background(),
|
||||
}
|
||||
// seed the statistics:start key that NewRedisRouter normally sets
|
||||
router.Client.Set("statistics:start", time.Now().UTC().Format(time.RFC3339), 0)
|
||||
|
||||
Reference in New Issue
Block a user