mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Update mock-server, upload ci logs on failure
This commit is contained in:
@@ -6,7 +6,14 @@ import assert from 'assert';
|
||||
|
||||
import { ReceiptType } from '@signalapp/mock-server';
|
||||
|
||||
import { Bootstrap, debug, stats, RUN_COUNT, DISCARD_COUNT } from './fixtures';
|
||||
import {
|
||||
Bootstrap,
|
||||
debug,
|
||||
saveLogs,
|
||||
stats,
|
||||
RUN_COUNT,
|
||||
DISCARD_COUNT,
|
||||
} from './fixtures';
|
||||
|
||||
const CONVERSATION_SIZE = 500; // messages
|
||||
|
||||
@@ -128,6 +135,9 @@ const LAST_MESSAGE = 'start sending messages now';
|
||||
}
|
||||
|
||||
console.log('stats info=%j', { delta: stats(deltaList, [99, 99.8]) });
|
||||
} catch (error) {
|
||||
await saveLogs(bootstrap);
|
||||
throw error;
|
||||
} finally {
|
||||
await app.close();
|
||||
await bootstrap.teardown();
|
||||
|
||||
Reference in New Issue
Block a user