From 76417b9b2ad6a0a42f66e165b4d8bfc451b26fed Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 6 Dec 2017 16:05:37 -0800 Subject: [PATCH] use test utils in tombstone_tests --- tombstones_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tombstones_test.go b/tombstones_test.go index eb124fc94..43e27ff9e 100644 --- a/tombstones_test.go +++ b/tombstones_test.go @@ -19,8 +19,6 @@ import ( "os" "testing" "time" - - "github.com/stretchr/testify/require" ) func TestWriteAndReadbackTombStones(t *testing.T) { @@ -43,13 +41,13 @@ func TestWriteAndReadbackTombStones(t *testing.T) { stones[ref] = dranges } - require.NoError(t, writeTombstoneFile(tmpdir, stones)) + Ok(t, writeTombstoneFile(tmpdir, stones)) restr, err := readTombstones(tmpdir) - require.NoError(t, err) + Ok(t, err) // Compare the two readers. - require.Equal(t, stones, restr) + Equals(t, stones, restr) } func TestAddingNewIntervals(t *testing.T) { @@ -117,7 +115,7 @@ func TestAddingNewIntervals(t *testing.T) { for _, c := range cases { - require.Equal(t, c.exp, c.exist.add(c.new)) + Equals(t, c.exp, c.exist.add(c.new)) } return }