Skip to content

Commit

Permalink
test-node-sctp.ts is failing, add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Mar 6, 2024
1 parent 1c2b236 commit 069f78e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion node/src/test/test-node-sctp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ afterEach(async () => {

test('ordered DataProducer delivers all SCTP messages to the DataConsumer', async () => {
const onStream = jest.fn();

Check failure on line 115 in node/src/test/test-node-sctp.ts

View workflow job for this annotation

GitHub Actions / ci (macos-14, 20)

Expected blank line after variable declarations
const numMessages = 200;
console.log('TODO: Revert numMessages to 200');

Check failure on line 116 in node/src/test/test-node-sctp.ts

View workflow job for this annotation

GitHub Actions / ci (macos-14, 20)

Unexpected console statement
const numMessages = 3;
// const numMessages = 200;
let sentMessageBytes = 0;
let recvMessageBytes = 0;
let numSentMessages = 0;
Expand All @@ -140,6 +142,8 @@ test('ordered DataProducer delivers all SCTP messages to the DataConsumer', asyn
data.ppid = sctp.PPID.WEBRTC_BINARY;
}

console.log('---- sending id %s', id);

Check failure on line 145 in node/src/test/test-node-sctp.ts

View workflow job for this annotation

GitHub Actions / ci (macos-14, 20)

Unexpected console statement

ctx.sctpSendStream!.write(data);
sentMessageBytes += data.byteLength;

Expand Down Expand Up @@ -170,6 +174,8 @@ test('ordered DataProducer delivers all SCTP messages to the DataConsumer', asyn
// @ts-ignore
const ppid = data.ppid;

console.log('---- received id %s', id);

Check failure on line 177 in node/src/test/test-node-sctp.ts

View workflow job for this annotation

GitHub Actions / ci (macos-14, 20)

Unexpected console statement

if (id !== numReceivedMessages) {
reject(
new Error(
Expand Down

0 comments on commit 069f78e

Please sign in to comment.