Fix flaky test
This commit is contained in:
Родитель
f263edbd3c
Коммит
76cb8d6d24
|
@ -671,10 +671,10 @@ describe('WorkerChannel', () => {
|
|||
process.env.AzureWebJobsScriptRoot = 'test';
|
||||
|
||||
// Accesing private method
|
||||
(channel as any).logColdStartWarning(100);
|
||||
(channel as any).logColdStartWarning(10);
|
||||
|
||||
// Set slight delay
|
||||
await new Promise((resolve) => setTimeout(resolve, 200));
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
sinon.assert.calledWith(stream.written, <rpc.IStreamingMessage>{
|
||||
rpcLog: {
|
||||
message:
|
||||
|
|
Загрузка…
Ссылка в новой задаче