File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { setupLogs } from '@zenfs/core/tests/logs.js';
55import assert from 'node:assert/strict' ;
66import { fstatSync , openSync , readFileSync , readSync } from 'node:fs' ;
77import { open } from 'node:fs/promises' ;
8- import { suite , test } from 'node:test' ;
8+ import { after , suite , test } from 'node:test' ;
99
1010setupLogs ( ) ;
1111
@@ -41,7 +41,7 @@ suite('Basic ZIP operations', () => {
4141 _runTests ( ) ;
4242} ) ;
4343
44- await using handle = await open ( import . meta. dirname + '/files/data.zip' ) ;
44+ const handle = await open ( import . meta. dirname + '/files/data.zip' ) ;
4545
4646suite ( 'ZIP Streaming' , ( ) => {
4747 test ( 'Configure' , async ( ) => {
@@ -73,3 +73,5 @@ suite('Custom data source', () => {
7373
7474 _runTests ( ) ;
7575} ) ;
76+
77+ after ( async ( ) => await handle . close ( ) ) ;
You can’t perform that action at this time.
0 commit comments