@@ -10,14 +10,15 @@ globalThis.XMLHttpRequest = await import("xmlhttprequest-ssl").then(m => m.XMLHt
1010
1111describe ( "Browser Fetch API" , ( ) => {
1212 test . concurrent ( "Download file browser - memory" , async ( context ) => {
13+
1314 const downloader = await downloadFileBrowser ( {
1415 url : BIG_FILE
1516 } ) ;
1617
1718 await downloader . download ( ) ;
1819 const hash = hashBuffer ( downloader . writeStream . result ) ;
1920 context . expect ( hash )
20- . toMatchInlineSnapshot ( "\"9ae3ff19ee04fc02e9c60ce34e42858d16b46eeb88634d2035693c1ae9dbcbc9\"" ) ;
21+ . toMatchInlineSnapshot ( `"0e1a20347e130a168a5c555826915a1302e3fae467b85db6aae53c243c2b0a26"` ) ;
2122 } ) ;
2223
2324 test . concurrent ( "Download file browser" , async ( context ) => {
@@ -37,11 +38,11 @@ describe("Browser Fetch API", () => {
3738
3839 await downloader . download ( ) ;
3940 context . expect ( hashBuffer ( buffer ) )
40- . toMatchInlineSnapshot ( "\"9ae3ff19ee04fc02e9c60ce34e42858d16b46eeb88634d2035693c1ae9dbcbc9\"" ) ;
41+ . toMatchInlineSnapshot ( `"0e1a20347e130a168a5c555826915a1302e3fae467b85db6aae53c243c2b0a26"` ) ;
4142 context . expect ( lastWrite )
4243 . toBe ( downloader . file . totalSize ) ;
4344 } ) ;
44- } , { timeout : 1000 * 60 * 3 } ) ;
45+ } ) ;
4546
4647describe ( "Browser Fetch memory" , ( ) => {
4748 test . sequential ( "Download file for tests" , async ( context ) => {
@@ -50,7 +51,7 @@ describe("Browser Fetch memory", () => {
5051 const buffer = Buffer . from ( await fs . readFile ( response ) ) ;
5152 const hash = hashBuffer ( buffer ) ;
5253 context . expect ( hash )
53- . toMatchInlineSnapshot ( "\"9ae3ff19ee04fc02e9c60ce34e42858d16b46eeb88634d2035693c1ae9dbcbc9\"" ) ;
54+ . toMatchInlineSnapshot ( `"0e1a20347e130a168a5c555826915a1302e3fae467b85db6aae53c243c2b0a26"` ) ;
5455 } ) ;
5556
5657 test . sequential ( "Download file browser - memory (xhr)" , async ( context ) => {
@@ -91,4 +92,4 @@ describe("Browser Fetch memory", () => {
9192 context . expect ( diff )
9293 . toBe ( - 1 ) ;
9394 } ) ;
94- } , { timeout : 1000 * 60 * 3 } ) ;
95+ } ) ;
0 commit comments