From 8b08bd4a8065cb7a240761c3683e8f837b06cc3c Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Sun, 27 Dec 2015 15:27:39 -0700 Subject: 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. --- tx.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tx.go') diff --git a/tx.go b/tx.go index d16f9f5..5f4c9f0 100644 --- a/tx.go +++ b/tx.go @@ -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() -- cgit v1.2.3