mirror of
https://github.com/Permissionless-Software-Foundation/psf-bch-api.git
synced 2026-09-21 16:52:00 -07:00
Merge pull request #27 from Permissionless-Software-Foundation/ct-unstable
fix(full node): Debugging config settings
This commit is contained in:
@@ -39,6 +39,7 @@ class FullNodeRPCAdapter {
|
|||||||
|
|
||||||
async call (method, params = [], requestId) {
|
async call (method, params = [], requestId) {
|
||||||
const id = requestId || `${this.requestIdPrefix}-${method}`
|
const id = requestId || `${this.requestIdPrefix}-${method}`
|
||||||
|
console.log('full-node-rpc.js/call(): this.http.defaults.baseURL: ', this.http.defaults.baseURL)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await this.http.post('', {
|
const response = await this.http.post('', {
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ describe('#full-node-rpc.js', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
sandbox = sinon.createSandbox()
|
sandbox = sinon.createSandbox()
|
||||||
mockAxiosInstance = {
|
mockAxiosInstance = {
|
||||||
|
defaults: {
|
||||||
|
baseURL: baseConfig.fullNode.rpcBaseUrl
|
||||||
|
},
|
||||||
post: sandbox.stub()
|
post: sandbox.stub()
|
||||||
}
|
}
|
||||||
axiosCreateStub = sandbox.stub(axios, 'create').returns(mockAxiosInstance)
|
axiosCreateStub = sandbox.stub(axios, 'create').returns(mockAxiosInstance)
|
||||||
|
|||||||
Reference in New Issue
Block a user