Switch to 'newest-1'

This commit is contained in:
Jacob Karlsson 2024-06-28 17:32:50 +02:00
parent e16aa8b2a9
commit e86bcda734
1 changed files with 3 additions and 5 deletions

View File

@ -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(alice.set.load)(aliceID)
await p(bob.set.load)(bobID) await p(bob.set.load)(bobID)
// TODO: do we need to follow? probably
assert(await p(alice.set.add)('follows', bobID), 'alice follows bob') 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) const goal = 'post@newest-1'
await p(bob.conductor.start)(bobID, [['post@newest-50'], ['post@newest-50']], 64_000_000) 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()) const remoteAlice = await p(bob.connect)(alice.getAddress())
assert('alice and bob connected') assert('alice and bob connected')