Skip to content

Fix asynchronous testing of signatures - #1505

Merged
tbranyen merged 1 commit into
nodegit:masterfrom
tniessen:test-fix-signature-promise-rejection
Jun 5, 2018
Merged

Fix asynchronous testing of signatures#1505
tbranyen merged 1 commit into
nodegit:masterfrom
tniessen:test-fix-signature-promise-rejection

Conversation

@tniessen

@tniessen tniessen commented Jun 4, 2018

Copy link
Copy Markdown
Contributor

The previous implementation mixed promises and callbacks in a way that was incompatible with mocha. This patch removes the callback and uses promises only. If the test failed, an "unhandled promise rejection warning" was emitted in recent Node.js versions.

The previous implementation mixed promises and callbacks in a way that
was incompatible with mocha. This patch removes the callback and uses
promises only.
@tbranyen

tbranyen commented Jun 5, 2018

Copy link
Copy Markdown
Member

This is much cleaner, thanks!

@tbranyen
tbranyen merged commit fc56c94 into nodegit:master Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants