@@ -15,10 +15,10 @@ describe('internet access enabled', () => {
1515 async ( { sandbox } ) => {
1616 // Test internet connectivity by making a curl request to a reliable external site
1717 const result = await sandbox . commands . run (
18- "curl -s -o /dev/null -w '%{http_code}' https://e2b.dev "
18+ "curl -s -o /dev/null -w '%{http_code}' https://connectivitycheck.gstatic.com/generate_204 "
1919 )
2020 assert . equal ( result . exitCode , 0 )
21- assert . equal ( result . stdout . trim ( ) , '200 ' )
21+ assert . equal ( result . stdout . trim ( ) , '204 ' )
2222 }
2323 )
2424} )
@@ -36,7 +36,7 @@ describe('internet access disabled', () => {
3636 // Test that internet connectivity is blocked by making a curl request
3737 try {
3838 await sandbox . commands . run (
39- 'curl --connect-timeout 3 --max-time 5 -Is https://e2b.dev '
39+ 'curl --connect-timeout 3 --max-time 5 -Is https://connectivitycheck.gstatic.com/generate_204 '
4040 )
4141 // If we reach here, the command succeeded, which means internet access is not properly disabled
4242 assert . fail ( 'Expected command to fail when internet access is disabled' )
@@ -55,10 +55,10 @@ describe('internet access default', () => {
5555 async ( { sandbox } ) => {
5656 // Test internet connectivity by making a curl request to a reliable external site
5757 const result = await sandbox . commands . run (
58- "curl -s -o /dev/null -w '%{http_code}' https://e2b.dev "
58+ "curl -s -o /dev/null -w '%{http_code}' https://connectivitycheck.gstatic.com/generate_204 "
5959 )
6060 assert . equal ( result . exitCode , 0 )
61- assert . equal ( result . stdout . trim ( ) , '200 ' )
61+ assert . equal ( result . stdout . trim ( ) , '204 ' )
6262 }
6363 )
6464} )
0 commit comments