Fix testing setup
This commit is contained in:
parent
0897f7a545
commit
3784418567
11 changed files with 266 additions and 119 deletions
|
|
@ -104,11 +104,8 @@ async function runTest({
|
|||
}
|
||||
}
|
||||
|
||||
// Settling rounds to drain cascading broadcasts between agents.
|
||||
// Completing work on agent A can trigger broadcasts to agent B,
|
||||
// which can cascade further. With N agents the worst case is N
|
||||
// hops, so N+1 passes guarantees all cascades are drained.
|
||||
for (let round = 0; round <= clients.length; round++) {
|
||||
// Settling rounds: drain cascading broadcasts between agents
|
||||
for (let round = 0; round < 10; round++) {
|
||||
for (const client of clients) {
|
||||
try {
|
||||
await client.waitUntilSynced();
|
||||
|
|
@ -118,8 +115,13 @@ async function runTest({
|
|||
}
|
||||
}
|
||||
}
|
||||
// TODO: it's very ugly, let's remove this
|
||||
await sleep(2000);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
for (const client of clients) {
|
||||
try {
|
||||
logger.info(`Destroying ${client.name}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue