Add ipfs api names to counter tests

This commit is contained in:
haad 2016-05-24 16:18:13 +02:00
parent 881262f3e1
commit 8a766ab66f

View File

@ -22,6 +22,7 @@ let ipfs, ipfsDaemon;
const IpfsApis = [ const IpfsApis = [
{ {
// js-ipfs // js-ipfs
name: 'js-ipfs',
start: () => { start: () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const IPFS = require('ipfs') const IPFS = require('ipfs')
@ -56,6 +57,7 @@ const IpfsApis = [
}, },
{ {
// js-ipfs-api via local daemon // js-ipfs-api via local daemon
name: 'js-ipfs-api',
start: () => { start: () => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
ipfsd.disposableApi((err, ipfs) => { ipfsd.disposableApi((err, ipfs) => {
@ -80,7 +82,7 @@ const IpfsApis = [
// OrbitServer.start(); // uncomment if running this test suite stand-alone // OrbitServer.start(); // uncomment if running this test suite stand-alone
IpfsApis.forEach(function(ipfsApi) { IpfsApis.forEach(function(ipfsApi) {
describe('CounterStore', function() { describe('CounterStore with ' + ipfsApi.name, function() {
this.timeout(40000); this.timeout(40000);
let client1, client2; let client1, client2;