@@ -23,8 +23,8 @@ test('invites', async function (t) {
2323 const tn = await testnet ( 10 , t )
2424
2525 const a = await create ( t , { bootstrap : tn . bootstrap } )
26- t . teardown ( ( ) => {
27- a . close ( )
26+ t . teardown ( async ( ) => {
27+ await a . close ( )
2828 } )
2929
3030 const onUpdate = function ( ) {
@@ -43,7 +43,7 @@ test('invites', async function (t) {
4343 const b = await p . finished ( )
4444 await b . ready ( )
4545
46- t . teardown ( ( ) => b . close ( ) )
46+ t . teardown ( async ( ) => await b . close ( ) )
4747 b . on ( 'update' , function ( ) {
4848 if ( b . base . system . members === 2 ) t . pass ( 'b has two members' )
4949 } )
@@ -55,8 +55,8 @@ test('invites', async function (t) {
5555 const tn = await testnet ( 10 , t )
5656
5757 const a = await create ( t , { bootstrap : tn . bootstrap } )
58- t . teardown ( ( ) => {
59- a . close ( )
58+ t . teardown ( async ( ) => {
59+ await a . close ( )
6060 } )
6161
6262 const updateListener = function ( ) {
@@ -75,7 +75,7 @@ test('invites', async function (t) {
7575 const b = await p . finished ( )
7676 await b . ready ( )
7777
78- t . teardown ( ( ) => b . close ( ) )
78+ t . teardown ( async ( ) => await b . close ( ) )
7979 b . on ( 'update' , function ( ) {
8080 if ( b . base . system . members === 2 ) t . pass ( 'b has two members' )
8181 } )
@@ -87,8 +87,8 @@ test('invite resets when createInvite type is different than previous', async fu
8787 const tn = await testnet ( 10 , t )
8888
8989 const a = await create ( t , { bootstrap : tn . bootstrap } )
90- t . teardown ( ( ) => {
91- a . close ( )
90+ t . teardown ( async ( ) => {
91+ await a . close ( )
9292 } )
9393
9494 const inv = await a . createInvite ( )
@@ -111,8 +111,8 @@ test('blind encryption', async function (t) {
111111 bootstrap : tn . bootstrap ,
112112 blindEncryption : new BlindEncryptionSodium ( password )
113113 } )
114- t . teardown ( ( ) => {
115- a . close ( )
114+ t . teardown ( async ( ) => {
115+ await a . close ( )
116116 } )
117117
118118 const updateListener = function ( ) {
@@ -142,7 +142,7 @@ test('blind encryption', async function (t) {
142142 t . absent ( encryptionKeyBuffer )
143143 t . ok ( encryptionKeyEncryptedBuffer )
144144
145- t . teardown ( ( ) => b . close ( ) )
145+ t . teardown ( async ( ) => await b . close ( ) )
146146 b . on ( 'update' , function ( ) {
147147 if ( b . base . system . members === 2 ) t . pass ( 'b has two members' )
148148 } )
@@ -155,12 +155,12 @@ test('suspend and resume', async function (t) {
155155
156156 const a = await create ( t , { bootstrap : tn . bootstrap } )
157157 const inv = await a . createInvite ( )
158- t . teardown ( ( ) => a . close ( ) )
158+ t . teardown ( async ( ) => await a . close ( ) )
159159
160160 const p = await pair ( t , inv , { bootstrap : tn . bootstrap } )
161161 const b = await p . finished ( )
162162 await b . ready ( )
163- t . teardown ( ( ) => b . close ( ) )
163+ t . teardown ( async ( ) => await b . close ( ) )
164164
165165 await new Promise ( ( resolve ) => {
166166 const check = ( ) => {
0 commit comments