fix timeout issue (maybe?)
This commit is contained in:
1 parent
95e4a879b9
commit
b7f47531b7
7 files changed
+397
-5
No files matched your search
@@ -200,6 +200,13 @@ try {
|
||||
return { length: bytes.length, valid: bytes.every(b => b === 123) };
|
||||
});
|
||||
assert.deepEqual(data, { length: 2 * 1024 * 1024 + 7, valid: true });
|
||||
await wait(sender, () => window.__hellcon.element<HTMLTextAreaElement>('#connection-diagnostics').value.includes('pairs='));
|
||||
const diagnostics = await evaluate(sender, () => window.__hellcon.element<HTMLTextAreaElement>('#connection-diagnostics').value);
|
||||
assert.match(diagnostics, /local code: host=\d+/);
|
||||
assert.match(diagnostics, /remote code: host=\d+/);
|
||||
assert.match(diagnostics, /requestsSent=/);
|
||||
assert.match(diagnostics, /transfer done/);
|
||||
assert.doesNotMatch(diagnostics, /browser-test\.bin|a=candidate:|a=ice-pwd:|a=fingerprint:|\.local\b/);
|
||||
console.log('PASS: real two-page WebRTC flow; full fingerprints; no metadata before both confirmations; exact file and receipt.');
|
||||
console.log('PASS: invalid offers can be replaced; invalid answers can be corrected without losing the live offer.');
|
||||
await click(sender, 'Reset'); await click(receiver, 'Reset');
|
||||
@@ -213,6 +220,9 @@ try {
|
||||
await click(sender, 'Receive');
|
||||
await wait(receiver, () => window.__hellcon.aborted);
|
||||
assert.equal(await evaluate(receiver, () => !!document.querySelector('a.download')), false);
|
||||
await wait(receiver, () => window.__hellcon.element<HTMLTextAreaElement>('#connection-diagnostics').value.includes('pairs='));
|
||||
assert.match(await evaluate(receiver, () => window.__hellcon.element<HTMLTextAreaElement>('#connection-diagnostics').value), /session failed/);
|
||||
console.log('PASS: privacy-safe candidate/check diagnostics remain available after completion and failure.');
|
||||
console.log('PASS: switching away from Send closes the connection and aborts the receiver’s pending disk write.');
|
||||
await click(sender, 'Send'); await click(receiver, 'Reset');
|
||||
await connect(sender, receiver, 2048);
|
||||
|
||||
Reference in new issue
Block a user