Skip to content

Commit

Permalink
remove the console statements from the test
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Sep 30, 2023
1 parent a8ddacd commit 2467023
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions example/src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,6 @@ test("can stream all messages", async () => {
// Record message stream across all conversations
const allMessages: DecodedMessage[] = [];
await alix.conversations.streamAllMessages(async (message) => {
console.log(`Pushing message ${message.id}`)
allMessages.push(message);
});

Expand All @@ -513,12 +512,10 @@ test("can stream all messages", async () => {
await delayToPropogate();

for (let i = 0; i < 5; i++) {
console.log(`Message ${i}`)
await boConvo.send({ text: `Message ${i}` });
await delayToPropogate();
}
if (allMessages.length !== 5) {
console.log("Failing here at 5")
throw Error("Unexpected all messages count " + allMessages.length);
}

Expand All @@ -527,12 +524,10 @@ test("can stream all messages", async () => {
const caroConvo = await caro.conversations.newConversation(alix.address);
await delayToPropogate();
for (let i = 0; i < 5; i++) {
console.log(`Message2 ${i}`)
await caroConvo.send({ text: `Message ${i}` });
await delayToPropogate();
}
if (allMessages.length !== 10) {
console.log("Failing here at 10")
throw Error("Unexpected all messages count " + allMessages.length);
}

Expand All @@ -543,12 +538,10 @@ test("can stream all messages", async () => {
});

for (let i = 0; i < 5; i++) {
console.log(`Message3 ${i}`)
await boConvo.send({ text: `Message ${i}` });
await delayToPropogate();
}
if (allMessages.length <= 10) {
console.log(`Failing here at 15 ${allMessages.length}`)
throw Error("Unexpected all messages count " + allMessages.length);
}

Expand Down

0 comments on commit 2467023

Please sign in to comment.