Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
check the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yichao 'Peak' Ji committed Jun 7, 2017
1 parent 8ed89ac commit 7b72938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/iterator-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ make('close db with open iterator', function (db, t, done) {
if(cnt++ === 0)
t.error(err, 'no error from next()')
else
t.ok(err, 'had error from next() after end()')
t.equal(err.message, 'iterator has ended')
if(key !== undefined)
ite.next(loop)
})
Expand Down

0 comments on commit 7b72938

Please sign in to comment.