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

Commit 6709244

Browse files
author
Alan Shaw
committed
fix: commit the missing file
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent ca76e25 commit 6709244

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const CID = require('cids')
1414
const debug = require('debug')
1515
const defaultsDeep = require('@nodeutils/defaults-deep')
1616
const EventEmitter = require('events')
17+
const { isCI } = require('ci-info')
1718

1819
const config = require('./config')
1920
const boot = require('./boot')
@@ -67,7 +68,7 @@ class IPFS extends EventEmitter {
6768
start: true,
6869
EXPERIMENTAL: {},
6970
preload: {
70-
enabled: true,
71+
enabled: !(isCI || process.env.NODE_ENV === 'test'),
7172
addresses: [
7273
'/dnsaddr/node0.preload.ipfs.io/https',
7374
'/dnsaddr/node1.preload.ipfs.io/https'

0 commit comments

Comments
 (0)