mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Use TUS utilities for backup upload
This commit is contained in:
@@ -65,7 +65,7 @@ export class TestServer extends EventEmitter {
|
||||
typeof address === 'object' && address != null,
|
||||
'address must be an object'
|
||||
);
|
||||
return `http://localhost:${address.port}/}`;
|
||||
return `http://localhost:${address.port}/`;
|
||||
}
|
||||
|
||||
respondWith(status: number, headers: OutgoingHttpHeaders = {}): void {
|
||||
|
||||
@@ -146,7 +146,7 @@ describe('tusProtocol', () => {
|
||||
}),
|
||||
});
|
||||
assert.strictEqual(result, false);
|
||||
assert.strictEqual(caughtError?.message, 'fetch failed');
|
||||
assert.strictEqual(caughtError?.message, 'test');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -317,7 +317,7 @@ describe('tusProtocol', () => {
|
||||
}),
|
||||
});
|
||||
assert.strictEqual(result, false);
|
||||
assert.strictEqual(caughtError?.message, 'fetch failed');
|
||||
assert.strictEqual(caughtError?.message, 'test');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -327,7 +327,6 @@ describe('tusProtocol', () => {
|
||||
function assertSocketCloseError(error: unknown) {
|
||||
// There isn't an equivalent to this chain in assert()
|
||||
expect(error, toLogFormat(error))
|
||||
.property('cause')
|
||||
.property('code')
|
||||
.oneOf(['ECONNRESET', 'UND_ERR_SOCKET']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user