Fix tests

This commit is contained in:
Stuart Nelson 2018-01-21 15:38:19 +01:00
parent fc9306cd7e
commit b45c11b561
1 changed files with 2 additions and 12 deletions

View File

@ -97,13 +97,8 @@ func TestAlertsPut(t *testing.T) {
}
func TestAlertsSubscribe(t *testing.T) {
dir, err := ioutil.TempDir("", "alerts_test")
if err != nil {
t.Fatal(err)
}
marker := types.NewMarker()
alerts, err := NewAlerts(marker, 30*time.Minute, dir)
alerts, err := NewAlerts(marker, 30*time.Minute)
if err != nil {
t.Fatal(err)
}
@ -182,13 +177,8 @@ func TestAlertsSubscribe(t *testing.T) {
}
func TestAlertsGetPending(t *testing.T) {
dir, err := ioutil.TempDir("", "alerts_test")
if err != nil {
t.Fatal(err)
}
marker := types.NewMarker()
alerts, err := NewAlerts(marker, 30*time.Minute, dir)
alerts, err := NewAlerts(marker, 30*time.Minute)
if err != nil {
t.Fatal(err)
}