From e86bcda7348da0ad3a9d5797094b79f007a8875a Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Fri, 28 Jun 2024 17:32:50 +0200 Subject: [PATCH] Switch to 'newest-1' --- test/realtime.test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/realtime.test.js b/test/realtime.test.js index 31bfcc5..dc6ef29 100644 --- a/test/realtime.test.js +++ b/test/realtime.test.js @@ -63,13 +63,11 @@ test('create 200 messages that manage to replicate with low "newest" goals', asy await p(alice.set.load)(aliceID) await p(bob.set.load)(bobID) - // TODO: do we need to follow? probably assert(await p(alice.set.add)('follows', bobID), 'alice follows bob') - // TODO: remove this one - assert(await p(bob.set.add)('follows', aliceID), 'alice follows bob') - await p(alice.conductor.start)(aliceID, [['post@newest-50'], ['post@newest-50']], 64_000_000) - await p(bob.conductor.start)(bobID, [['post@newest-50'], ['post@newest-50']], 64_000_000) + const goal = 'post@newest-1' + await p(alice.conductor.start)(aliceID, [[goal], [goal]], 64_000_000) + await p(bob.conductor.start)(bobID, [[goal], [goal]], 64_000_000) const remoteAlice = await p(bob.connect)(alice.getAddress()) assert('alice and bob connected')