From 2a60aa52f992126ca01665888238ec3e6fd749a3 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 1 Feb 2024 12:10:41 +0800 Subject: [PATCH] [DONE] local nodejs unit test [ToTest] golang unit test --- test/configtxlatorReadTest.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/test/configtxlatorReadTest.js b/test/configtxlatorReadTest.js index 222157b..304432a 100644 --- a/test/configtxlatorReadTest.js +++ b/test/configtxlatorReadTest.js @@ -4,7 +4,7 @@ import {filedirname} from '@davidkhala/light/es6.mjs'; import * as helper from '../app/helper.js'; import {ChannelConfig} from '../common/nodejs/channelConfig.js'; import {consoleLogger} from '@davidkhala/logger/log4.js'; -import BinManager from '../common/nodejs/binManager/binManager.js'; +import {Server} from '../common/nodejs/binManager/configtxlator.js'; const logger = consoleLogger('test:configtxlator'); const channelName = 'allchannel'; @@ -14,15 +14,12 @@ filedirname(import.meta); const binPath = path.resolve(__dirname, '../common/bin/'); describe('configtxlator', async () => { - it('viaServer', async () => { - - const binManager = new BinManager(binPath); - await binManager.configtxlatorRESTServer('start'); - - }); - before(async () => { await orderer.connect(); + // viaServer + const server = new Server(binPath); + await server.start(); + }); describe('app channel', () => {