@@ -69,7 +69,7 @@ func TestCoreSearch(t *testing.T) {
6969
7070 // Set up an http server to serve our custom index file
7171 test_index := paths .New (".." , "testdata" , "test_index.json" )
72- url := env .HTTPServeFile (8000 , test_index )
72+ url := env .HTTPServeFile (8000 , test_index , false )
7373
7474 // Run update-index with our test index
7575 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -161,7 +161,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
161161
162162 // Set up an http server to serve our custom index file
163163 testIndex := paths .New (".." , "testdata" , "test_index.json" )
164- url := env .HTTPServeFile (8000 , testIndex )
164+ url := env .HTTPServeFile (8000 , testIndex , false )
165165
166166 // update custom index and install test core (installed cores affect `core search`)
167167 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -749,7 +749,7 @@ func TestCoreSearchSortedResults(t *testing.T) {
749749
750750 // Set up the server to serve our custom index file
751751 testIndex := paths .New (".." , "testdata" , "test_index.json" )
752- url := env .HTTPServeFile (8000 , testIndex )
752+ url := env .HTTPServeFile (8000 , testIndex , false )
753753
754754 // update custom index
755755 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -821,7 +821,7 @@ func TestCoreListSortedResults(t *testing.T) {
821821
822822 // Set up the server to serve our custom index file
823823 testIndex := paths .New (".." , "testdata" , "test_index.json" )
824- url := env .HTTPServeFile (8000 , testIndex )
824+ url := env .HTTPServeFile (8000 , testIndex , false )
825825
826826 // update custom index
827827 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -892,7 +892,7 @@ func TestCoreListDeprecatedPlatformWithInstalledJson(t *testing.T) {
892892
893893 // Set up the server to serve our custom index file
894894 testIndex := paths .New (".." , "testdata" , "test_index.json" )
895- url := env .HTTPServeFile (8000 , testIndex )
895+ url := env .HTTPServeFile (8000 , testIndex , false )
896896
897897 // update custom index
898898 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -1110,8 +1110,8 @@ func TestCoreInstallRunsToolPostInstallScript(t *testing.T) {
11101110 env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
11111111 defer env .CleanUp ()
11121112
1113- url := env .HTTPServeFile (8080 , paths .New ("testdata" , "package_with_postinstall_index.json" ))
1114- env .HTTPServeFile (8081 , paths .New ("testdata" , "core_with_postinst.zip" ))
1113+ url := env .HTTPServeFile (8080 , paths .New ("testdata" , "package_with_postinstall_index.json" ), false )
1114+ env .HTTPServeFile (8081 , paths .New ("testdata" , "core_with_postinst.zip" ), false )
11151115
11161116 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls" , url .String ())
11171117 require .NoError (t , err )
@@ -1129,7 +1129,7 @@ func TestCoreBrokenDependency(t *testing.T) {
11291129
11301130 // Set up an http server to serve our custom index file
11311131 test_index := paths .New (".." , "testdata" , "test_index.json" )
1132- url := env .HTTPServeFile (8000 , test_index )
1132+ url := env .HTTPServeFile (8000 , test_index , false )
11331133
11341134 // Run update-index with our test index
11351135 _ , _ , err := cli .Run ("core" , "update-index" , "--additional-urls=" + url .String ())
@@ -1145,7 +1145,7 @@ func TestCoreUpgradeWarningWithPackageInstalledButNotIndexed(t *testing.T) {
11451145 env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
11461146 defer env .CleanUp ()
11471147
1148- url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" )).String ()
1148+ url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" ), false ).String ()
11491149
11501150 t .Run ("missing additional-urls" , func (t * testing.T ) {
11511151 // update index
@@ -1187,7 +1187,7 @@ func TestCoreHavingIncompatibleDepTools(t *testing.T) {
11871187 env , cli := integrationtest .CreateArduinoCLIWithEnvironment (t )
11881188 defer env .CleanUp ()
11891189
1190- url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" )).String ()
1190+ url := env .HTTPServeFile (8000 , paths .New (".." , "testdata" , "test_index.json" ), false ).String ()
11911191 additionalURLs := "--additional-urls=" + url
11921192
11931193 _ , _ , err := cli .Run ("core" , "update-index" , additionalURLs )
0 commit comments