File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const idb = window.indexedDB ||
14
14
window . msIndexedDB
15
15
16
16
// book keeping
17
- const dbs = [ ]
17
+ let dbs = [ ]
18
18
19
19
function createRepo ( id , done ) {
20
20
const repoData = [ ]
@@ -55,6 +55,7 @@ function removeRepos (done) {
55
55
idb . deleteDatabase ( db )
56
56
idb . deleteDatabase ( `${ db } /blocks` )
57
57
} )
58
+ dbs = [ ]
58
59
done ( )
59
60
}
60
61
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const testRepoPath = path.join(__dirname, 'test-repo')
9
9
const each = require ( 'async/each' )
10
10
11
11
// book keeping
12
- const repos = [ ]
12
+ let repos = [ ]
13
13
14
14
function createRepo ( id , done ) {
15
15
const date = Date . now ( ) . toString ( )
@@ -26,7 +26,10 @@ function createRepo (id, done) {
26
26
function removeRepos ( done ) {
27
27
each ( repos , ( repo , cb ) => {
28
28
rimraf ( repo , cb )
29
- } , done )
29
+ } , ( err ) => {
30
+ repos = [ ]
31
+ done ( err )
32
+ } )
30
33
}
31
34
32
35
const repo = {
You can’t perform that action at this time.
0 commit comments