diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 17:17:03 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-07-26 17:17:03 -0600 |
commit | 44e6192d2bdecf1336e372686f15417ed98c4b16 (patch) | |
tree | 3a51074bfdd1275706f4d550392280efb93bee18 /cmd/bolt/get_test.go | |
parent | Move tests to a test package. (diff) | |
download | dedo-44e6192d2bdecf1336e372686f15417ed98c4b16.tar.gz dedo-44e6192d2bdecf1336e372686f15417ed98c4b16.tar.xz |
Remove testify.
Diffstat (limited to 'cmd/bolt/get_test.go')
-rw-r--r-- | cmd/bolt/get_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/bolt/get_test.go b/cmd/bolt/get_test.go index 7b7c3a0..8acd0f4 100644 --- a/cmd/bolt/get_test.go +++ b/cmd/bolt/get_test.go @@ -5,7 +5,6 @@ import ( "github.com/boltdb/bolt" . "github.com/boltdb/bolt/cmd/bolt" - "github.com/stretchr/testify/assert" ) // Ensure that a value can be retrieved from the CLI. @@ -19,7 +18,7 @@ func TestGet(t *testing.T) { }) db.Close() output := run("get", path, "widgets", "foo") - assert.Equal(t, "bar", output) + equals(t, "bar", output) }) } @@ -27,7 +26,7 @@ func TestGet(t *testing.T) { func TestGetDBNotFound(t *testing.T) { SetTestMode(true) output := run("get", "no/such/db", "widgets", "foo") - assert.Equal(t, "stat no/such/db: no such file or directory", output) + equals(t, "stat no/such/db: no such file or directory", output) } // Ensure that an error is reported if the bucket is not found. @@ -36,7 +35,7 @@ func TestGetBucketNotFound(t *testing.T) { open(func(db *bolt.DB, path string) { db.Close() output := run("get", path, "widgets", "foo") - assert.Equal(t, "bucket not found: widgets", output) + equals(t, "bucket not found: widgets", output) }) } @@ -50,6 +49,6 @@ func TestGetKeyNotFound(t *testing.T) { }) db.Close() output := run("get", path, "widgets", "foo") - assert.Equal(t, "key not found: foo", output) + equals(t, "key not found: foo", output) }) } |