@@ -1305,27 +1305,30 @@ describe("E2E sync", () => {
13051305 } ,
13061306 ) ;
13071307
1308- it ( "client and relay each have a random half of the data - many steps" , { timeout : 15000 } , async ( ) => {
1309- await using run = testCreateRunner ( ) ;
1310- const [ clientStorage , relayStorage ] = await createStorages ( ) ;
1308+ it (
1309+ "client and relay each have a random half of the data - many steps" ,
1310+ { timeout : 15000 } ,
1311+ async ( ) => {
1312+ await using run = testCreateRunner ( ) ;
1313+ const [ clientStorage , relayStorage ] = await createStorages ( ) ;
13111314
1312- const shuffledMessages = deps . randomLib . shuffle ( messages ) ;
1313- const middle = Math . floor ( shuffledMessages . length / 2 ) ;
1314- const firstHalf = shuffledMessages . slice ( 0 , middle ) ;
1315- const secondHalf = shuffledMessages . slice ( middle ) ;
1315+ const shuffledMessages = deps . randomLib . shuffle ( messages ) ;
1316+ const middle = Math . floor ( shuffledMessages . length / 2 ) ;
1317+ const firstHalf = shuffledMessages . slice ( 0 , middle ) ;
1318+ const secondHalf = shuffledMessages . slice ( middle ) ;
13161319
1317- assertNonEmptyArray ( firstHalf ) ;
1318- assertNonEmptyArray ( secondHalf ) ;
1320+ assertNonEmptyArray ( firstHalf ) ;
1321+ assertNonEmptyArray ( secondHalf ) ;
13191322
1320- await run ( clientStorage . writeMessages ( testOwnerIdBytes , firstHalf ) ) ;
1321- await run ( relayStorage . writeMessages ( testOwnerIdBytes , secondHalf ) ) ;
1323+ await run ( clientStorage . writeMessages ( testOwnerIdBytes , firstHalf ) ) ;
1324+ await run ( relayStorage . writeMessages ( testOwnerIdBytes , secondHalf ) ) ;
13221325
1323- const syncSteps = await reconcile (
1324- clientStorage ,
1325- relayStorage ,
1326- ProtocolMessageRangesMaxSize . orThrow ( 3000 ) ,
1327- ) ;
1328- expect ( syncSteps ) . toMatchInlineSnapshot ( `
1326+ const syncSteps = await reconcile (
1327+ clientStorage ,
1328+ relayStorage ,
1329+ ProtocolMessageRangesMaxSize . orThrow ( 3000 ) ,
1330+ ) ;
1331+ expect ( syncSteps ) . toMatchInlineSnapshot ( `
13291332 {
13301333 "syncSizes": [
13311334 392,
@@ -1370,7 +1373,8 @@ describe("E2E sync", () => {
13701373 "syncSteps": 38,
13711374 }
13721375 ` ) ;
1373- } ) ;
1376+ } ,
1377+ ) ;
13741378
13751379 it ( "starts sync from createProtocolMessageFromCrdtMessages" , async ( ) => {
13761380 const owner = testOwner ;
0 commit comments