Skip to content

Commit bebc74d

Browse files
committed
Reduce timeout to improve test times
1 parent 7321303 commit bebc74d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

peer/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (c *Conn) init() error {
145145
defer c.pendingCandidatesMutex.Unlock()
146146

147147
if c.rtc.RemoteDescription() == nil {
148-
c.opts.Logger.Debug(context.Background(), "adding local candidate to buffer with remote description")
148+
c.opts.Logger.Debug(context.Background(), "adding local candidate to buffer")
149149
c.pendingCandidates = append(c.pendingCandidates, iceCandidate.ToJSON())
150150
return
151151
}

peer/conn_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ var (
3535
// In CI resources are frequently contended, so increasing this value
3636
// results in less flakes.
3737
if os.Getenv("CI") == "true" {
38-
return 4 * time.Second
38+
return 3 * time.Second
3939
}
4040
return 100 * time.Millisecond
4141
}()
42-
failedTimeout = disconnectedTimeout * 4
42+
failedTimeout = disconnectedTimeout * 3
4343
keepAliveInterval = time.Millisecond * 2
4444

4545
// There's a global race in the vnet library allocation code.

0 commit comments

Comments
 (0)