mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-07-03 11:02:31 +00:00
Add ipfs api names to counter tests
This commit is contained in:
parent
881262f3e1
commit
8a766ab66f
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user