From 88fd2c1f0bc35ebf3885b06502bbc6671a873021 Mon Sep 17 00:00:00 2001 From: Sky Young Date: Fri, 19 Jul 2019 11:47:01 -0600 Subject: [PATCH] Update tests to use fclient --- test/http-test.js | 2 +- test/indexer-test.js | 2 +- test/node-rpc-test.js | 2 +- test/wallet-rpc-test.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/http-test.js b/test/http-test.js index caec2d49..5b1d1346 100644 --- a/test/http-test.js +++ b/test/http-test.js @@ -37,7 +37,7 @@ const node = new FullNode({ 'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString() }}); -const {NodeClient, WalletClient} = require('bclient'); +const {NodeClient, WalletClient} = require('@oipwg/fclient'); const nclient = new NodeClient({ port: ports.node, diff --git a/test/indexer-test.js b/test/indexer-test.js index 7785057d..fc2b4ff6 100644 --- a/test/indexer-test.js +++ b/test/indexer-test.js @@ -21,7 +21,7 @@ const FullNode = require('../lib/node/fullnode'); const SPVNode = require('../lib/node/spvnode'); const Network = require('../lib/protocol/network'); const network = Network.get('regtest'); -const {NodeClient, WalletClient} = require('bclient'); +const {NodeClient, WalletClient} = require('@oipwg/fclient'); const {forValue, testdir, rimraf} = require('./util/common'); const ports = { diff --git a/test/node-rpc-test.js b/test/node-rpc-test.js index ba8e02cb..931272c9 100644 --- a/test/node-rpc-test.js +++ b/test/node-rpc-test.js @@ -26,7 +26,7 @@ const node = new FullNode({ 'BCOIN_WALLET_HTTP_PORT': ports.wallet.toString() }}); -const {NodeClient} = require('bclient'); +const {NodeClient} = require('@oipwg/fclient'); const nclient = new NodeClient({ port: ports.node, diff --git a/test/wallet-rpc-test.js b/test/wallet-rpc-test.js index c8e83f0e..f6ee7fdb 100644 --- a/test/wallet-rpc-test.js +++ b/test/wallet-rpc-test.js @@ -2,7 +2,7 @@ 'use strict'; -const {NodeClient, WalletClient} = require('bclient'); +const {NodeClient, WalletClient} = require('@oipwg/fclient'); const assert = require('bsert'); const consensus = require('../lib/protocol/consensus'); const FullNode = require('../lib/node/fullnode');