Migrate to gotestyourself/assert

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2018-01-23 12:06:06 -05:00
parent 1719a6e17a
commit ef48a0268e
13 changed files with 113 additions and 108 deletions

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/containerd/containerd/gc"
"github.com/stretchr/testify/require"
"github.com/gotestyourself/gotestyourself/assert"
)
func TestPauseThreshold(t *testing.T) {
@@ -123,7 +123,7 @@ func TestTrigger(t *testing.T) {
t.Fatalf("GC failed: %#v", err)
}
require.Equal(t, tc.d, stats.Elapsed())
assert.Equal(t, tc.d, stats.Elapsed())
if c := tc.runCount(); c != 1 {
t.Fatalf("unexpected gc run count %d, expected 1", c)