=== RUN TestDownloadFailureDoesNotRemoveLegacyModel
|
[2026-06-03 14:18:03] INFO Downloading model from URL 1: ://bad-url
|
[2026-06-03 14:18:03] INFO Model install from URL 1 failed: parse "://bad-url": missing protocol scheme
|
--- PASS: TestDownloadFailureDoesNotRemoveLegacyModel (0.00s)
|
=== RUN TestDownloadProfileFallsBackWhenPrimaryArchiveInvalid
|
[2026-06-03 14:18:03] INFO Downloading model from URL 1: http://127.0.0.1:62376/bad
|
[2026-06-03 14:18:03] INFO Extracting model archive...
|
[2026-06-03 14:18:03] INFO Model install from URL 1 failed: extraction failed: tar extraction failed: exit status 1, output: tar: Error opening archive: Unrecognized archive format
|
|
[2026-06-03 14:18:03] INFO Downloading model from URL 2: http://127.0.0.1:62376/fallback
|
[2026-06-03 14:18:03] INFO Extracting model archive...
|
[2026-06-03 14:18:03] INFO Model download and extraction complete
|
--- PASS: TestDownloadProfileFallsBackWhenPrimaryArchiveInvalid (0.01s)
|
=== RUN TestDownloadProfileBadArchiveDoesNotWriteInstalledState
|
[2026-06-03 14:18:03] INFO Downloading model from URL 1: http://127.0.0.1:62378
|
[2026-06-03 14:18:03] INFO Extracting model archive...
|
[2026-06-03 14:18:03] INFO Model install from URL 1 failed: extraction failed: tar extraction failed: exit status 1, output: tar: Error opening archive: Unrecognized archive format
|
|
--- PASS: TestDownloadProfileBadArchiveDoesNotWriteInstalledState (0.00s)
|
PASS
|
ok voicesnap/internal/model 0.623s
|