Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
  • Loading branch information
Alan Shaw authored and achingbrain committed May 29, 2019
1 parent 74d4a36 commit 601599d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ chai.use(require('dirty-chai'))
const expect = chai.expect
const memdown = require('memdown')
const LevelDown = require('leveldown')
const os = require('os')
const LevelStore = require('../src')

describe('LevelDatastore', () => {
Expand Down Expand Up @@ -45,7 +46,7 @@ describe('LevelDatastore', () => {
;[memdown, LevelDown].forEach(database => {
describe(`interface-datastore ${database.name}`, () => {
require('interface-datastore/src/tests')({
setup: () => new LevelStore(`datastore-test/${Math.random()}`, { db: database }),
setup: () => new LevelStore(`${os.tmpdir()}/datastore-level-test-${Math.random()}`, { db: database }),
teardown () {
memdown.clearGlobalStore()
}
Expand Down

0 comments on commit 601599d

Please sign in to comment.