mirror of
https://github.com/prometheus/prometheus
synced 2025-01-01 12:02:13 +00:00
Fix broken test (#99)
This commit is contained in:
parent
a2948f3c5f
commit
60c823c663
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user