From 60c823c663457e334523c7d1608eed5ec609618a Mon Sep 17 00:00:00 2001 From: Brian Brazil Date: Thu, 22 Jun 2017 15:24:38 +0100 Subject: [PATCH] Fix broken test (#99) --- head_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/head_test.go b/head_test.go index 421fe3992..c86c40768 100644 --- a/head_test.go +++ b/head_test.go @@ -277,7 +277,7 @@ func TestHeadBlock_e2e(t *testing.T) { if ts >= minTime && ts <= maxTime { require.NoError(t, err) } else { - require.Error(t, ErrOutOfBounds, err) + require.EqualError(t, err, ErrOutOfBounds.Error()) } ts += rand.Int63n(timeInterval) + 1 @@ -582,7 +582,7 @@ func TestDelete_e2e(t *testing.T) { if ts >= minTime && ts <= maxTime { require.NoError(t, err) } else { - require.Error(t, ErrOutOfBounds, err) + require.EqualError(t, err, ErrOutOfBounds.Error()) } ts += rand.Int63n(timeInterval) + 1