Skip to content

Commit

Permalink
chore: re-enable tests that use isOnline (#825)
Browse files Browse the repository at this point in the history
Now that isOnline will not throw when the node is offline, re-enable
tests that use this API call.
  • Loading branch information
achingbrain authored Apr 19, 2024
1 parent 970cf93 commit 4569bd2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"@libp2p/logger": "^4.0.10",
"execa": "^8.0.1",
"joi": "^17.2.1",
"kubo-rpc-client": "^4.0.0",
"kubo-rpc-client": "^4.0.1",
"merge-options": "^3.0.1",
"nanoid": "^5.0.7",
"p-defer": "^4.0.1",
Expand Down
3 changes: 1 addition & 2 deletions test/controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ describe('Node API', function () {
})

describe('stop', () => {
// https://github.com/ipfs/js-kubo-rpc-client/pull/222
describe.skip('should stop the node', () => {
describe('should stop the node', () => {
for (const opts of types) {
it(`type: ${opts.type} remote: ${Boolean(opts.remote)}`, async () => {
const node = await factory.spawn(opts)
Expand Down
6 changes: 2 additions & 4 deletions test/factory.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ describe('`Factory spawn()` ', function () {
}
})

// https://github.com/ipfs/js-kubo-rpc-client/pull/222
describe.skip('`Factory.clean()` should stop all nodes', () => {
describe('`Factory.clean()` should stop all nodes', () => {
let factory: Factory

afterEach(async () => {
Expand All @@ -127,8 +126,7 @@ describe('`Factory spawn()` ', function () {
}
})

// https://github.com/ipfs/js-kubo-rpc-client/pull/222
describe.skip('`Factory.clean()` should not error when controller already stopped', () => {
describe('`Factory.clean()` should not error when controller already stopped', () => {
let factory: Factory

afterEach(async () => {
Expand Down

0 comments on commit 4569bd2

Please sign in to comment.