Skip to content

Commit 62b4493

Browse files
Update url to prevent tests from failing (#2013)
1 parent b6cc517 commit 62b4493

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: arduino/resources/resources_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestDownloadAndChecksums(t *testing.T) {
4242
CachePath: "cache",
4343
Checksum: "SHA-256:6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092",
4444
Size: 486,
45-
URL: "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/core.zip",
45+
URL: "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/core.zip",
4646
}
4747
digest, err := hex.DecodeString("6a338cf4d6d501176a2d352c87a8d72ac7488b8c5b82cdf2a4e2cef630391092")
4848
require.NoError(t, err)

Diff for: internal/integrationtest/core/core_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
162162
lines = append(lines, strings.Fields(strings.TrimSpace(v)))
163163
}
164164
// The header is printed on the first lines
165-
require.Equal(t, []string{"test:x86", "2.0.0", "test_core"}, lines[19])
165+
require.Equal(t, []string{"test:x86", "2.0.0", "test_core"}, lines[20])
166166
numPlatforms := len(lines) - 1
167167

168168
// same thing in JSON format, also check the number of platforms found is the same
@@ -179,7 +179,7 @@ func TestCoreSearchNoArgs(t *testing.T) {
179179
lines = append(lines, strings.Fields(strings.TrimSpace(v)))
180180
}
181181
// The header is printed on the first lines
182-
require.Equal(t, []string{"test:x86", "2.0.0", "test_core"}, lines[20])
182+
require.Equal(t, []string{"test:x86", "2.0.0", "test_core"}, lines[21])
183183
numPlatforms = len(lines) - 1
184184

185185
// same thing in JSON format, also check the number of platforms found is the same
@@ -385,7 +385,7 @@ func TestCoreZipslip(t *testing.T) {
385385
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
386386
defer env.CleanUp()
387387

388-
url := "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
388+
url := "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/test_index.json"
389389
_, _, err := cli.Run("core", "update-index", "--additional-urls="+url)
390390
require.NoError(t, err)
391391

@@ -399,7 +399,7 @@ func TestCoreBrokenInstall(t *testing.T) {
399399
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
400400
defer env.CleanUp()
401401

402-
url := "https://raw.githubusercontent.com/arduino/arduino-cli/master/test/testdata/test_index.json"
402+
url := "https://raw.githubusercontent.com/arduino/arduino-cli/master/internal/integrationtest/testdata/test_index.json"
403403
_, _, err := cli.Run("core", "update-index", "--additional-urls="+url)
404404
require.NoError(t, err)
405405
_, _, err = cli.Run("core", "install", "brokenchecksum:x86", "--additional-urls="+url)

0 commit comments

Comments
 (0)