Repository navigation
tests: a phone’s message file and spoken audio keep every byte through the native byte client (#449) - #497
Open
kridaydave wants to merge 2 commits into
Open
tests: a phone’s message file and spoken audio keep every byte through the native byte client (#449)#497kridaydave wants to merge 2 commits into
kridaydave wants to merge 2 commits into
Conversation
kridaydave
force-pushed
the
test/android-media-byte-exact
branch
from
December 3, 2026 11:34
a95006f to
8543c43
Compare
…h the native byte client (DuskBotAI#449)
kridaydave
force-pushed
the
test/android-media-byte-exact
branch
from
December 3, 2026 11:42
8543c43 to
70132cf
Compare
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.
Follow-up tests for #449, already fixed on
devby the native byte-client change (message files and/api/tts/speakPOSTs go throughDuskStreaminstead ofCapacitorHttp).The existing transport test checks routing by mocking the byte client; it never proves that the native stream actually returns binary bodies unchanged. This adds:
src/mobile/native-stream.test.ts: a binary MP4 body comes back byte for byte, including bytes above0x7Fthat a text decode would replace.src/mobile/transport/transport.test.ts:answersWithBytesclassifies the message-file and spoken-audio POSTs as byte-exact, and leaves GET/HEAD and other POSTs alone.The branch also carries the
server/system-proxy.tsprerequisite from #499 so thestaticsource guard is green:undicinow loads at first use insideinstallSystemProxyinstead of at module load. That is the only production change; the #449 coverage itself is tests only.Focused tests:
56 passed.