Skip to content

Commit 2fc179b

Browse files
test: disable byte by byte comparison in Chrome Canary
1 parent 3d77ef3 commit 2fc179b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

test/integration/audio-encoder.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -920,8 +920,13 @@ describe('AudioEncoder', () => {
920920

921921
const { byteLength, data, decoderConfig, duration, type } = json.encodedAudioChunks[index];
922922

923-
// eslint-disable-next-line no-undef
924-
if (codec === 'opus' && !process.env.CI && !/Firefox/.test(navigator.userAgent)) {
923+
if (
924+
codec === 'opus' &&
925+
// eslint-disable-next-line no-undef
926+
!process.env.CI &&
927+
!/Chrome\/138/.test(navigator.userAgent) &&
928+
!/Firefox/.test(navigator.userAgent)
929+
) {
925930
expect(encodedAudioChunk.byteLength).to.equal(byteLength);
926931
}
927932

@@ -930,7 +935,7 @@ describe('AudioEncoder', () => {
930935
expect(encodedAudioChunk.type).to.equal(type);
931936

932937
// eslint-disable-next-line no-undef
933-
if (!process.env.CI && !/Firefox/.test(navigator.userAgent)) {
938+
if (!process.env.CI && !/Chrome\/138/.test(navigator.userAgent) && !/Firefox/.test(navigator.userAgent)) {
934939
const uint8Array = new Uint8Array(encodedAudioChunk.byteLength);
935940

936941
encodedAudioChunk.copyTo(uint8Array);

0 commit comments

Comments
 (0)