From b45c11b561e5f6f5280d4b0c307df0d62f26248a Mon Sep 17 00:00:00 2001 From: Stuart Nelson Date: Sun, 21 Jan 2018 15:38:19 +0100 Subject: [PATCH] Fix tests --- provider/mem/mem_test.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/provider/mem/mem_test.go b/provider/mem/mem_test.go index c9b04c7a..e3613a9c 100644 --- a/provider/mem/mem_test.go +++ b/provider/mem/mem_test.go @@ -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) }