Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: skip failing tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Feb 27, 2018
1 parent 540e5f6 commit 72fdde4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/http-api/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@ const ncp = require('ncp').ncp
const rimraf = require('rimraf')
const waterfall = require('async/waterfall')

const isWindows = require('../utils/platforms').isWindows
const skipOnWindows = isWindows() ? describe.skip : describe

const fs = require('fs')
const path = require('path')

const DaemonFactory = require('ipfsd-ctl')
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })

describe('config endpoint', () => {
skipOnWindows('config endpoint', () => {
const repoExample = path.join(__dirname, '../fixtures/go-ipfs-repo')
const repoPath = path.join(__dirname, '../repo-tests-run')

Expand Down
5 changes: 4 additions & 1 deletion test/http-api/id.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ const rimraf = require('rimraf')
const waterfall = require('async/waterfall')
const path = require('path')

const isWindows = require('../utils/platforms').isWindows
const skipOnWindows = isWindows() ? describe.skip : describe

const DaemonFactory = require('ipfsd-ctl')
const df = DaemonFactory.create({ exec: 'src/cli/bin.js' })

describe('id endpoint', () => {
skipOnWindows('id endpoint', () => {
const repoExample = path.join(__dirname, '../fixtures/go-ipfs-repo')
const repoPath = path.join(__dirname, '../repo-tests-run')

Expand Down

0 comments on commit 72fdde4

Please sign in to comment.