diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-14 08:32:42 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-14 08:34:04 -0700 |
commit | 0ebef9c0bbf183a267c5cf861833d8854b4b2e31 (patch) | |
tree | 2b025229ec9c14e3945c0cf1bfb00d63472559ab /rwtransaction_test.go | |
parent | Add godoc badge. (diff) | |
download | dedo-0ebef9c0bbf183a267c5cf861833d8854b4b2e31.tar.gz dedo-0ebef9c0bbf183a267c5cf861833d8854b4b2e31.tar.xz |
Add examples.
Diffstat (limited to 'rwtransaction_test.go')
-rw-r--r-- | rwtransaction_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rwtransaction_test.go b/rwtransaction_test.go index 67855be..1ce3f70 100644 --- a/rwtransaction_test.go +++ b/rwtransaction_test.go @@ -119,7 +119,7 @@ func TestRWTransactionPutSingle(t *testing.T) { panic("get error: " + err.Error()) } if !bytes.Equal(value, v) { - db.CopyFile("/tmp/bolt.put.single.db") + db.CopyFile("/tmp/bolt.put.single.db", 0666) t.Fatalf("value mismatch [run %d] (%d of %d):\nkey: %x\ngot: %x\nexp: %x", index, i, len(m), []byte(k), value, v) } i++ @@ -155,7 +155,7 @@ func TestRWTransactionPutMultiple(t *testing.T) { value, err := txn.Get("widgets", item.Key) assert.NoError(t, err) if !assert.Equal(t, item.Value, value) { - db.CopyFile("/tmp/bolt.put.multiple.db") + db.CopyFile("/tmp/bolt.put.multiple.db", 0666) t.FailNow() } } |