Repository navigation
test(ios): expect the video's headers on its separate audio request - #2386
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TestIOSVideoSeekWithSeparateAudiofailed on apple-simulator with: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") madeVideo.Headersapply to a direct HTTPAudioSourcefile on Apple on purpose, ascore.Video's doc comment,docs/architecture/native-views.md, the public components docs and the macOS testTestVideoPlaysSeparateAudioAndSeeksItsCompositionall say. The iOS test was never updated because apple-simulator stopped atTestIOSDocumentTypesEndToEndfrom 2026-11-22 until #2381, so it never ran on CI after #681.The test now requires the video's
Refereron 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/ioson an iOS 18.4 simulator: passed.TestIOSVideoSeekWithSeparateAudio(the./internal/platform/iosstep: 14 passed, 0 failed) and every later step up toTestPressesCountConsecutiveClicksin./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.