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

Commit 93cc273

Browse files
dryajovdaviddias
authored andcommittedNov 24, 2017
test: fix SIG tests
1 parent ac95601 commit 93cc273

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@
163163
"temp": "~0.8.3",
164164
"through2": "^2.0.3",
165165
"update-notifier": "^2.3.0",
166-
"yargs": "^10.0.3"
166+
"yargs": "^10.0.3",
167+
"yargs-parser": "^8.0.0"
167168
},
168169
"optionalDependencies": {
169170
"prom-client": "^10.2.2",

‎test/cli/daemon.js

+6-9
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ describe('daemon', () => {
7171

7272
afterEach(() => clean(repoPath))
7373

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

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

91-
// TODO: test fails
92-
it.skip('should handle SIGINT gracefully', function (done) {
93-
this.timeout(20 * 1000)
90+
it('should handle SIGINT gracefully', function (done) {
91+
this.timeout(100 * 1000)
9492

9593
testSignal(ipfs, 'SIGINT').then(() => {
9694
checkLock(repoPath, done)
9795
}).catch(done)
9896
})
9997

100-
// TODO: test fails
101-
it.skip('should handle SIGTERM gracefully', function (done) {
102-
this.timeout(20 * 1000)
98+
it('should handle SIGTERM gracefully', function (done) {
99+
this.timeout(100 * 1000)
103100

104101
testSignal(ipfs, 'SIGTERM').then(() => {
105102
checkLock(repoPath, done)

0 commit comments

Comments
 (0)
This repository has been archived.