aboutsummaryrefslogtreecommitdiff
path: root/db_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'db_test.go')
-rw-r--r--db_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_test.go b/db_test.go
index 55535a0..b5c943e 100644
--- a/db_test.go
+++ b/db_test.go
@@ -512,7 +512,7 @@ func withOpenDB(fn func(*DB, string)) {
// mustCheck runs a consistency check on the database and panics if any errors are found.
func mustCheck(db *DB) {
- err := db.Update(func(tx *Tx) error {
+ err := db.View(func(tx *Tx) error {
return <-tx.Check()
})
if err != nil {