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

Commit

Permalink
chore: skip hrtime tests in webworkers
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Sep 24, 2020
1 parent cac6370 commit 15f48bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
18 changes: 2 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,29 +184,13 @@ jobs:
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t webworker --browsers FirefoxHeadless

- stage: test
name: http-api-client interface tests vs go-ipfs - electron main
env:
- DEBUG=ipfs*
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t electron-main

- stage: test
name: http-api-client interface tests vs go-ipfs - electron renderer
env:
- DEBUG=ipfs*
script:
- npm run test:interface:http-go -- $RUN_SINCE -- -- --bail -t electron-renderer

- stage: test
name: http-api-client interface tests vs js-ipfs - node
script:
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t node

- stage: test
name: http-api-client interface tests vs js-ipfs - chrome
env:
- DEBUG=ipfs*
script:
- npm run test:interface:http-js -- $RUN_SINCE -- -- --bail -t browser

Expand Down Expand Up @@ -237,6 +221,8 @@ jobs:

- stage: test
name: ipfs-message-port-client interface tests - chrome
env:
- DEBUG=ipfs*
script:
- npm run test:interface:message-port-client -- $RUN_SINCE -- -- --bail -t browser

Expand Down
4 changes: 2 additions & 2 deletions packages/ipfs/test/interface-http-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict'

const tests = require('interface-ipfs-core')
const { isNode, isBrowser } = require('ipfs-utils/src/env')
const { isNode, isBrowser, isWebWorker } = require('ipfs-utils/src/env')
const factory = require('./utils/factory')

/** @typedef { import("ipfsd-ctl").ControllerOptions } ControllerOptions */
Expand Down Expand Up @@ -52,7 +52,7 @@ describe('interface-ipfs-core over ipfs-http-client tests against js-ipfs', func
})

tests.files(commonFactory, {
skip: isBrowser ? [{
skip: isBrowser || isWebWorker ? [{
name: 'should make directory and specify mtime as hrtime',
reason: 'Not designed to run in the browser'
}, {
Expand Down

0 comments on commit 15f48bb

Please sign in to comment.