From c2912be1893947b1ae63964f094cf577ccde85b9 Mon Sep 17 00:00:00 2001 From: haad Date: Tue, 14 Feb 2017 16:32:00 +0100 Subject: [PATCH] Run tests only with Node.js daemon until js-ipfs-api has pubsub --- test/client.test.js | 8 ++++---- test/replicate.test.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/client.test.js b/test/client.test.js index 0c8fce9..c41d909 100644 --- a/test/client.test.js +++ b/test/client.test.js @@ -26,12 +26,12 @@ const username = 'testrunner' const hasIpfsApiWithPubsub = (ipfs) => { return ipfs.object.get !== undefined && ipfs.object.put !== undefined - && ipfs.pubsub.publish !== undefined - && ipfs.pubsub.subscribe !== undefined + // && ipfs.pubsub.publish !== undefined + // && ipfs.pubsub.subscribe !== undefined } -[IpfsNativeDaemon, IpfsNodeDaemon].forEach((IpfsDaemon) => { -// [IpfsNodeDaemon].forEach((IpfsDaemon) => { +// [IpfsNativeDaemon, IpfsNodeDaemon].forEach((IpfsDaemon) => { +[IpfsNodeDaemon].forEach((IpfsDaemon) => { // IpfsApis.forEach(function(ipfsApi) { describe('orbit-db client', function() { diff --git a/test/replicate.test.js b/test/replicate.test.js index 3e707a9..7e7f8ed 100644 --- a/test/replicate.test.js +++ b/test/replicate.test.js @@ -26,8 +26,8 @@ const databaseName = 'oribt-db-tests' const hasIpfsApiWithPubsub = (ipfs) => { return ipfs.object.get !== undefined && ipfs.object.put !== undefined - && ipfs.pubsub.publish !== undefined - && ipfs.pubsub.subscribe !== undefined + // && ipfs.pubsub.publish !== undefined + // && ipfs.pubsub.subscribe !== undefined } const waitForPeers = (ipfs, channel) => { @@ -46,7 +46,7 @@ const waitForPeers = (ipfs, channel) => { } // [IpfsNativeDaemon, IpfsNodeDaemon].forEach((IpfsDaemon) => { -[IpfsNativeDaemon].forEach((IpfsDaemon) => { +[IpfsNodeDaemon].forEach((IpfsDaemon) => { describe('orbit-db replication', function() { this.timeout(40000)