From 9b954e5e21047c980dfb335d489afbe9318d6cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zdyba=C5=82?= Date: Tue, 14 Apr 2020 14:33:10 +0200 Subject: [PATCH] shed: fix index test --- shed/index_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shed/index_test.go b/shed/index_test.go index 00c4aa44ff..42b7a462e0 100644 --- a/shed/index_test.go +++ b/shed/index_test.go @@ -1262,10 +1262,9 @@ func TestIndexOffset(t *testing.T) { checkItem(t, item, items[1]) item, err = index1.Offset(nil, -1) - if err != nil { - t.Error(err) + if err == nil { + t.Error("Error was expected!") } - checkItem(t, item, items[1]) item, err = index2.Offset(nil, 10) if err != nil {