aboutsummaryrefslogtreecommitdiff
path: root/cmd/bolt/export_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2014-07-26 17:17:03 -0600
committerBen Johnson <benbjohnson@yahoo.com>2014-07-26 17:17:03 -0600
commit44e6192d2bdecf1336e372686f15417ed98c4b16 (patch)
tree3a51074bfdd1275706f4d550392280efb93bee18 /cmd/bolt/export_test.go
parentMove tests to a test package. (diff)
downloaddedo-44e6192d2bdecf1336e372686f15417ed98c4b16.tar.gz
dedo-44e6192d2bdecf1336e372686f15417ed98c4b16.tar.xz
Remove testify.
Diffstat (limited to 'cmd/bolt/export_test.go')
-rw-r--r--cmd/bolt/export_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/bolt/export_test.go b/cmd/bolt/export_test.go
index 13f57d1..d98403c 100644
--- a/cmd/bolt/export_test.go
+++ b/cmd/bolt/export_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 database can be exported.
@@ -32,7 +31,7 @@ func TestExport(t *testing.T) {
})
db.Close()
output := run("export", path)
- assert.Equal(t, `[{"type":"bucket","key":"ZW1wdHk=","value":[]},{"type":"bucket","key":"d2lkZ2V0cw==","value":[{"key":"YmFy","value":""},{"key":"Zm9v","value":"MDAwMA=="}]},{"type":"bucket","key":"d29vaml0cw==","value":[{"key":"YmF6","value":"WFhYWA=="},{"type":"bucket","key":"d29vaml0cy9zdWJidWNrZXQ=","value":[{"key":"YmF0","value":"QQ=="}]}]}]`, output)
+ equals(t, `[{"type":"bucket","key":"ZW1wdHk=","value":[]},{"type":"bucket","key":"d2lkZ2V0cw==","value":[{"key":"YmFy","value":""},{"key":"Zm9v","value":"MDAwMA=="}]},{"type":"bucket","key":"d29vaml0cw==","value":[{"key":"YmF6","value":"WFhYWA=="},{"type":"bucket","key":"d29vaml0cy9zdWJidWNrZXQ=","value":[{"key":"YmF0","value":"QQ=="}]}]}]`, output)
})
}
@@ -40,5 +39,5 @@ func TestExport(t *testing.T) {
func TestExport_NotFound(t *testing.T) {
SetTestMode(true)
output := run("export", "no/such/db")
- 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)
}