@@ -44,7 +44,7 @@ test("Concurrent reads", async (t) => {
4444 t . is ( typeof result . name , 'string' ) ;
4545 t . is ( typeof result . email , 'string' ) ;
4646 }
47- await cleanup ( t . context ) ;
47+ cleanup ( t . context ) ;
4848} ) ;
4949
5050test ( "Concurrent writes" , async ( t ) => {
@@ -76,7 +76,7 @@ test("Concurrent writes", async (t) => {
7676 const result = await countStmt . get ( ) ;
7777 t . is ( result . count , 50 ) ;
7878
79- await cleanup ( t . context ) ;
79+ cleanup ( t . context ) ;
8080} ) ;
8181
8282test ( "Concurrent transaction isolation" , async ( t ) => {
@@ -119,7 +119,7 @@ test("Concurrent transaction isolation", async (t) => {
119119 t . truthy ( results [ 0 ] . name . startsWith ( 'Alice' ) ) ;
120120 t . truthy ( results [ 1 ] . name . startsWith ( 'Bob' ) ) ;
121121
122- await cleanup ( t . context ) ;
122+ cleanup ( t . context ) ;
123123} ) ;
124124
125125test ( "Concurrent reads and writes" , async ( t ) => {
@@ -182,8 +182,8 @@ test("Concurrent operations with timeout should handle busy database", async (t)
182182 t . true ( elapsed > timeout / 2 , "Timeout should be respected" ) ;
183183 }
184184
185- await conn1 . close ( ) ;
186- await conn2 . close ( ) ;
185+ conn1 . close ( ) ;
186+ conn2 . close ( ) ;
187187 fs . unlinkSync ( path ) ;
188188} ) ;
189189
@@ -196,7 +196,7 @@ const connect = async (path_opt, options = {}) => {
196196} ;
197197
198198const cleanup = async ( context ) => {
199- await context . db . close ( ) ;
199+ context . db . close ( ) ;
200200 fs . unlinkSync ( context . path ) ;
201201} ;
202202
0 commit comments