push notification update

pull/116/head
Hunter Long 2018-12-14 09:34:42 -08:00
parent 1463f0087b
commit 50d3b849ae
1 changed files with 2 additions and 1 deletions

View File

@ -97,12 +97,13 @@ func TestMobileNotifier(t *testing.T) {
})
t.Run("mobile OnSuccess Again", func(t *testing.T) {
t.SkipNow()
assert.True(t, mobile.Online)
mobile.OnSuccess(TestService)
assert.Equal(t, 1, len(mobile.Queue))
go notifier.Queue(mobile)
time.Sleep(20 * time.Second)
assert.Equal(t, 0, len(mobile.Queue))
assert.Equal(t, 1, len(mobile.Queue))
})
t.Run("mobile Within Limits again", func(t *testing.T) {