mirror of https://github.com/status-im/js-waku.git
Merge pull request #1188 from waku-org/chore/update-go-waku
test: bump go-waku to 0.5.0 and re-enable a CI run against it
This commit is contained in:
commit
a949b6ba61
|
@ -96,10 +96,9 @@ jobs:
|
|||
path: packages/tests/log/
|
||||
|
||||
node_with_go_waku:
|
||||
if: false # Can be removed when upgrading go-waku to 0.4.0 or later
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO_WAKU_VERSION: "0.2.2"
|
||||
GO_WAKU_VERSION: "0.5.0"
|
||||
WAKU_SERVICE_NODE_DIR: ../../go-waku
|
||||
WAKU_SERVICE_NODE_BIN: ./waku
|
||||
WAKU_SERVICE_NODE_PARAMS: "--min-relay-peers-to-publish=0" # Can be removed once https://github.com/status-im/nwaku/issues/1004 is done
|
||||
|
|
|
@ -126,7 +126,7 @@ export class Nwaku {
|
|||
this.logPath = `${LOG_DIR}/nwaku_${logName}.log`;
|
||||
}
|
||||
|
||||
async start(args?: Args): Promise<void> {
|
||||
async start(args: Args = {}): Promise<void> {
|
||||
try {
|
||||
await existsAsync(LOG_DIR);
|
||||
} catch (e) {
|
||||
|
@ -155,6 +155,12 @@ export class Nwaku {
|
|||
|
||||
this.rpcPort = ports[0];
|
||||
|
||||
const isGoWaku = WAKU_SERVICE_NODE_BIN.endsWith("/waku");
|
||||
|
||||
if (isGoWaku && !args.logLevel) {
|
||||
args.logLevel = LogLevel.Debug;
|
||||
}
|
||||
|
||||
// Object.assign overrides the properties with the source (if there are conflicts)
|
||||
Object.assign(
|
||||
mergedArgs,
|
||||
|
@ -173,7 +179,7 @@ export class Nwaku {
|
|||
|
||||
const argsArray = argsToArray(mergedArgs);
|
||||
|
||||
const natExtIp = "--nat:extip:127.0.0.1";
|
||||
const natExtIp = "--nat=extip:127.0.0.1";
|
||||
argsArray.push(natExtIp);
|
||||
|
||||
if (WAKU_SERVICE_NODE_PARAMS) {
|
||||
|
|
Loading…
Reference in New Issue