Skip to content

Commit

Permalink
Set unit test timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Nov 11, 2019
1 parent 24296eb commit fbe896a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concurrent/cond_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ func TestTimeoutCondWaitTimeoutNotify(t *testing.T) {
wait := sync.WaitGroup{}
wait.Add(2)
ch := make(chan time.Duration, 1)
timeout := 2 * time.Second
timeout := 5 * time.Second
go func() {
begin := time.Now()
obj.lockAndWaitWithTimeout(time.Duration(timeout) * time.Millisecond)
obj.lockAndWaitWithTimeout(timeout * time.Millisecond)
elapsed := time.Since(begin)
ch <- elapsed
wait.Done()
Expand Down

0 comments on commit fbe896a

Please sign in to comment.