Just check for general error in WAL test

Go 1.9 changed the returned error. Checking the exact message is too
fragile.
This commit is contained in:
Fabian Reinartz 2017-08-27 16:57:43 +02:00
parent 1b86bbb48a
commit 215a856f34
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func TestSegmentWAL_cut(t *testing.T) {
// Cutting creates a new file and close the previous tail file.
require.Equal(t, 2, len(w.files))
require.Equal(t, os.ErrInvalid.Error(), w.files[0].Close().Error())
require.Error(t, w.files[0].Close())
require.NoError(t, w.entry(WALEntrySeries, 1, []byte("Hello World!!")))