mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-29 18:05:36 +02:00
More tests
This commit is contained in:
parent
00af52411c
commit
c12ecb9f21
4 changed files with 144 additions and 10 deletions
server
|
@ -1872,11 +1872,11 @@ func subscribe(t *testing.T, s *Server, url string, rr *httptest.ResponseRecorde
|
|||
done <- true
|
||||
}()
|
||||
cancelAndWaitForDone := func() {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
cancel()
|
||||
<-done
|
||||
}
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(200 * time.Millisecond)
|
||||
return cancelAndWaitForDone
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue