Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
interop exchange files is all good
  • Loading branch information
daviddias committed Nov 8, 2017
commit 19d8555d9d6f9d851a06f4e9f52774074e7e0632
5 changes: 2 additions & 3 deletions test/interop/exchange-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const rimraf = require('rimraf')

const rmDir = promisify(rimraf)

const tmpDir = require('./util').tmpDir

const tmpDir = require('../utils/interop-daemon-spawner/util').tmpDir
const GoDaemon = require('../utils/interop-daemon-spawner/go')
const JsDaemon = require('../utils/interop-daemon-spawner/js')

Expand All @@ -42,7 +41,7 @@ const dirs = [
100
]

describe.only('exchange files', () => {
describe('exchange files', () => {
let goDaemon
let jsDaemon
let js2Daemon
Expand Down
4 changes: 2 additions & 2 deletions test/interop/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function catAndCheck (daemon, hash, data, callback) {
], (err, file) => {
console.log('got file')
expect(err).to.not.exist()
expect(file).to.be.eql(data)
expect(file).to.eql(data)
callback()
})
}

describe('repo', () => {
describe.only('repo', () => {
it('read repo: go -> js', (done) => {
const dir = os.tmpdir() + '/' + Math.ceil(Math.random() * 10000)
const data = crypto.randomBytes(1024 * 5)
Expand Down
2 changes: 1 addition & 1 deletion test/utils/interop-daemon-spawner/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const EventEmitter = require('events').EventEmitter
const IPFSAPI = require('ipfs-api')
const series = require('async/series')
const rimraf = require('rimraf')
const tmpDir = require('../util').tmpDir
const tmpDir = require('./util').tmpDir

const HttpApi = require('../../../src/http')

Expand Down