From 7b6287c7a1237b9cf7780b3538ae6ba928b38697 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Sat, 11 Nov 2017 01:07:40 +0100 Subject: [PATCH] Fixed unit test --- store/store_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/store/store_test.go b/store/store_test.go index d9af2c6..6f9e42d 100644 --- a/store/store_test.go +++ b/store/store_test.go @@ -33,7 +33,10 @@ func TestGenerateRandomString(t *testing.T) { for _, tc := range tt { t.Run(tc.name, func(t *testing.T) { - rnd := generateRandomString(tc.length) + rnd, err := generateRandomString(tc.length) + if err != nil { + t.Fatalf("could not generate random string: %v", err) + } if len(rnd) != int(tc.length) { t.Fatalf("length of %s random string is %d not the expected one: %d", tc.name, len(rnd), tc.length) }