Run tests only with Node.js daemon until js-ipfs-api has pubsub

This commit is contained in:
haad 2017-02-14 16:32:00 +01:00
parent c7e74839cf
commit c2912be189
2 changed files with 7 additions and 7 deletions

View File

@ -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() {

View File

@ -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)