From 5693ee33bfab66ac178cd80b856824d67caa2c5f Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sun, 12 Nov 2017 22:51:25 +0100 Subject: [PATCH] Fixed unit tests --- store/store_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/store/store_test.go b/store/store_test.go index 8868333..0ad1e9a 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -69,7 +69,7 @@ func TestCreateEntry(t *testing.T) { t.Fatalf("unexpected error: %v", err) } defer cleanup(store) - _, err = store.CreateEntry(Entry{}) + _, err = store.CreateEntry(Entry{}, "") if err != ErrNoValidURL { t.Fatalf("unexpected error: %v", err) } @@ -78,7 +78,7 @@ func TestCreateEntry(t *testing.T) { Public: EntryPublicData{ URL: "https://golang.org/", }, - }) + }, "") if err != nil && err != ErrGeneratingIDFailed { t.Fatalf("unexpected error during creating entry: %v", err) } @@ -111,7 +111,7 @@ func TestIncreaseVisitCounter(t *testing.T) { Public: EntryPublicData{ URL: "https://golang.org/", }, - }) + }, "") if err != nil { t.Fatalf("could not create entry: %v", err) }