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

Remove sync test #300

Merged
merged 2 commits into from
Jul 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* Remove copyright headers from code (@ralphtheninja)
* Remove node 9 from Travis (@ralphtheninja)
* Remove `location` (#258) (@ralphtheninja)
* Remove sync test from `test/put-test.js` (@ralphtheninja)

### Fixed
* Make sure all `t.throw` tests check error messages correctly (@ralphtheninja)
Expand Down
22 changes: 0 additions & 22 deletions test/put-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,6 @@ exports.put = function (test, testCommon) {
})
}

exports.sync = function (test, testCommon) {
test('sync put', function (t) {
db.put('foo', 'bar', { sync: true }, function (err) {
t.error(err)
db.get('foo', function (err, value) {
t.error(err)
t.equal(value.toString(), 'bar')
t.end()
})
})
})
test('sync put just before close', function (t) {
t.plan(2)
db.put('foo', 'bar', { sync: true }, function (err) {
t.error(err)
})
db.close(function (err) {
t.error(err)
})
})
}

exports.tearDown = function (test, testCommon) {
test('tearDown', function (t) {
db.close(testCommon.tearDown.bind(null, t))
Expand Down