diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2015-12-27 15:27:39 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2016-01-02 21:30:31 -0700 |
commit | 8b08bd4a8065cb7a240761c3683e8f837b06cc3c (patch) | |
tree | 26a01c0d5a3da53f45c7f54062c3af11479c4a2f /tx.go | |
parent | Merge pull request #474 from elithrar/patch-1 (diff) | |
download | dedo-8b08bd4a8065cb7a240761c3683e8f837b06cc3c.tar.gz dedo-8b08bd4a8065cb7a240761c3683e8f837b06cc3c.tar.xz |
test suite refactoring
This commit refactors the test suite to make it cleaner and to use the
standard testing library better. The `assert()`, `equals()`, and `ok()`
functions have been removed and some test names have been changed for
clarity.
No functionality has been changed.
Diffstat (limited to 'tx.go')
-rw-r--r-- | tx.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -285,7 +285,7 @@ func (tx *Tx) WriteTo(w io.Writer) (n int64, err error) { if err != nil { return 0, err } - defer f.Close() + defer func() { _ = f.Close() }() // Copy the meta pages. tx.db.metalock.Lock() |