mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 13:53:09 -06:00
Fix unit tests
This commit is contained in:
parent
a3c11b21c7
commit
9d3c1a5a33
|
|
@ -36,7 +36,10 @@ func TestBackoff(t *testing.T) {
|
|||
// completes but we will find out how long the backoff should
|
||||
// have been.
|
||||
interrupt := make(chan bool, 1)
|
||||
close(interrupt)
|
||||
go func() {
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
close(interrupt)
|
||||
}()
|
||||
|
||||
// Get the duration.
|
||||
duration, blacklist := server.BackoffIfRequired(backingOff, interrupt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue