Skip to content

Commit ea7391f

Browse files
committed
Added integration test
1 parent 076bc0b commit ea7391f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/integrationtest/core/core_test.go

+12
Original file line numberDiff line numberDiff line change
@@ -1354,3 +1354,15 @@ func TestReferencedCoreBuildAndRuntimeProperties(t *testing.T) {
13541354
out.ArrayMustContain(jsonEncode("runtime.platform.path=" + corePlatformPath))
13551355
}
13561356
}
1357+
1358+
func TestCoreInstallWithWrongArchiveSize(t *testing.T) {
1359+
// See: https://github.com/arduino/arduino-cli/issues/2332
1360+
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
1361+
defer env.CleanUp()
1362+
1363+
_, _, err := cli.Run("--additional-urls", "https://raw.githubusercontent.com/geolink/opentracker-arduino-board/bf6158ebab0402db217bfb02ea61461ddc6f2940/package_opentracker_index.json", "core", "update-index")
1364+
require.NoError(t, err)
1365+
1366+
_, _, err = cli.Run("--additional-urls", "https://raw.githubusercontent.com/geolink/opentracker-arduino-board/bf6158ebab0402db217bfb02ea61461ddc6f2940/package_opentracker_index.json", "core", "install", "opentracker:[email protected]")
1367+
require.NoError(t, err)
1368+
}

0 commit comments

Comments
 (0)