1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-29 18:05:36 +02:00

More tests

This commit is contained in:
binwiederhier 2023-01-29 20:11:58 -05:00
parent 00af52411c
commit c12ecb9f21
4 changed files with 144 additions and 10 deletions

View file

@ -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
}