-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
bc76ddf
to
1f336ea
Compare
1f336ea
to
26a46ec
Compare
26a46ec
to
1732fa8
Compare
}) | ||
republisher._republishEntry = sinon.stub() | ||
|
||
await republisher.start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need stopping?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is stopped in the afterEach (line 29), like remaining tests
packages/ipfs-core/test/name.spec.js
Outdated
expect(republisher._republishEntry.calledOnce).to.equal(false) | ||
|
||
// Initial republish should happen after ~500ms | ||
await delay(750) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we configure a smaller delay to make the tests faster?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to 200 with initial broadcast of 100
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also decreased the other test timers
IPNS Republish was republishing self private key twice, first as part of the root IPNS Record published when creating the IPFS Repo and then as part of keychain keys.
This was specially problematic when doing a flow such as:
node packages/ipfs/src/cli.js init DEBUG=ipfs:i* node packages/ipfs/src/cli.js daemon --pass 12345678901234567890
As we provided a keychain password for the daemon, this password was going to be used for creating the keychain dek. However, self was created as part of the PeerId in the init command (without password).