dont show all 20 send messages

support muting a logger and chaining calls
This commit is contained in:
Bruno Windels 2018-09-12 09:47:57 +02:00
parent dcf96e1461
commit 244d5b0851
2 changed files with 29 additions and 5 deletions

View file

@ -111,8 +111,11 @@ async function aLazyLoadingTest(alice, bob, charlies) {
await bob.delay(500);
await charlies.join(alias);
const messageRange = range(1, 20);
bob.log.step("sends 20 messages").mute();
for(let i = 20; i >= 1; --i) {
await sendMessage(bob, `I will only say this ${i} time(s)!`);
}
bob.log.unmute().done();
await join(alice, room);
}