Fix broken test (#99)

This commit is contained in:
Brian Brazil 2017-06-22 15:24:38 +01:00 committed by GitHub
parent a2948f3c5f
commit 60c823c663

View File

@ -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