-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stricter rules for custom user agent #104
Conversation
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.
Agent commit looks good, tests run fine! Left some comments.
integration/test/config-test.js
Outdated
await util.close(); | ||
}); | ||
|
||
describe.only('--agent', function () { |
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.
.only
to be removed? All tests pass without this.
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.
yep thanks
integration/test/config-test.js
Outdated
await util.waitForSync(); | ||
|
||
const peer = util.node.pool.peers.head(); | ||
assert.strictEqual(peer.agent, '/hnsd:1.0.0/'); |
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 the test need to be updated with every version bump? Could pick from package.json (which I think was the idea for adding version there)
Edit: yeah just saw version used below
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.
yep! fixing...
Closes #96
Blocked by #101 and #102 and #99 😬