Skip to content

test(ios): expect the video's headers on its separate audio request - #2386

Merged
houko merged 1 commit into
mainfrom
test/ios-separate-audio-headers
Nov 25, 2026
Merged

houko merged 1 commit into
mainfrom
test/ios-separate-audio-headers

Conversation

@houko

@houko houko commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

TestIOSVideoSeekWithSeparateAudio failed on apple-simulator with:

videocomposition_test.go:56: the separate audio URL received the video's Referer

The test is wrong, not the backend. It was added in a0baacf (2026-11-22 02:48) asserting that the separate audio request carries no Referer. Seven hours later #681 (0b17afc, "fix(apple): send video headers with separate audio") made Video.Headers apply to a direct HTTP AudioSource file on Apple on purpose, as core.Video's doc comment, docs/architecture/native-views.md, the public components docs and the macOS test TestVideoPlaysSeparateAudioAndSeeksItsComposition all say. The iOS test was never updated because apple-simulator stopped at TestIOSDocumentTypesEndToEnd from 2026-11-22 until #2381, so it never ran on CI after #681.

The test now requires the video's Referer on the audio request too, and refuses the request without it, as the macOS test does.

No changelog fragment: test only.

Verification

  • go tool nsgo test -target ios_simulator -timeout 1m -run '^TestIOSVideoSeekWithSeparateAudio$' ./internal/platform/ios on an iOS 18.4 simulator: passed.
  • test.yml dispatched on this branch (run 45598077609): apple-simulator now passes TestIOSVideoSeekWithSeparateAudio (the ./internal/platform/ios step: 14 passed, 0 failed) and every later step up to TestPressesCountConsecutiveClicks in ./internal/testhost/testdata/press (press counts = [1 1], want [1 2 1]), an independent failure handled in its own pull request. Every other job passed.

Since #681 (0b17afc) Video.Headers applies to a direct HTTP AudioSource file on Apple, as core.Video documents and the macOS test checks. TestIOSVideoSeekWithSeparateAudio, written just before that change, still asserted that the audio request had no Referer, and it was not run on CI until TestIOSDocumentTypesEndToEnd passed again.
@houko
houko enabled auto-merge (rebase) November 25, 2026 11:09
@houko
houko merged commit 33be13a into main Nov 25, 2026
29 checks passed
@houko
houko deleted the test/ios-separate-audio-headers branch November 25, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant