8000 Fix test · arduino/micropython.js@d0bc67f · GitHub
[go: up one dir, main page]

Skip to content

Commit d0bc67f

Browse files
committed
Fix test
List files again after removing folder
1 parent 6aa0f4b commit d0bc67f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,11 @@ const testCases = {
211211
"remove folder": async (board) => {
212212
const folderPath = '/test_remove'+parseInt(Math.random()*99999)
213213
await board.fs_mkdir(folderPath)
214-
const ls = await board.fs_ils('/')
214+
let ls = await board.fs_ils('/')
215215
const foundFolder = ls.find(f => f[0] === folderPath.slice(1) && f[1] === 16384)
216216
assert.ok(foundFolder)
217217
await board.fs_rmdir(folderPath)
218+
ls = await board.fs_ils('/')
218219
const notFoundFolder = ls.find(f => f[0] === folderPath.slice(1) && f[1] === 16384)
219220
assert.ok(!notFoundFolder)
220221
},

0 commit comments

Comments
 (0)
0