Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
test: fix SIG tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov authored and daviddias committed Nov 24, 2017
1 parent ac95601 commit 93cc273
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
"temp": "~0.8.3",
"through2": "^2.0.3",
"update-notifier": "^2.3.0",
"yargs": "^10.0.3"
"yargs": "^10.0.3",
"yargs-parser": "^8.0.0"
},
"optionalDependencies": {
"prom-client": "^10.2.2",
Expand Down
15 changes: 6 additions & 9 deletions test/cli/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ describe('daemon', () => {

afterEach(() => clean(repoPath))

// TODO: test fails
it.skip('do not crash if Addresses.Swarm is empty', function (done) {
this.timeout(20 * 1000)
it('do not crash if Addresses.Swarm is empty', function (done) {
this.timeout(100 * 1000)

ipfs('init').then(() => {
return ipfs('config', 'Addresses', JSON.stringify({
Expand All @@ -88,18 +87,16 @@ describe('daemon', () => {
}).catch((err) => done(err))
})

// TODO: test fails
it.skip('should handle SIGINT gracefully', function (done) {
this.timeout(20 * 1000)
it('should handle SIGINT gracefully', function (done) {
this.timeout(100 * 1000)

testSignal(ipfs, 'SIGINT').then(() => {
checkLock(repoPath, done)
}).catch(done)
})

// TODO: test fails
it.skip('should handle SIGTERM gracefully', function (done) {
this.timeout(20 * 1000)
it('should handle SIGTERM gracefully', function (done) {
this.timeout(100 * 1000)

testSignal(ipfs, 'SIGTERM').then(() => {
checkLock(repoPath, done)
Expand Down

0 comments on commit 93cc273

Please sign in to comment.