瀏覽代碼

api-scripts: increase retry attempts on connect

These scripts are used by tests to wait for joystream-node come up
even after the process/service is up it may take some time to initialize
genesis state.
Mokhtar Naamani 4 年之前
父節點
當前提交
af022c088e
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      utils/api-scripts/src/dev-set-runtime-code.ts
  2. 1 1
      utils/api-scripts/src/status.ts

+ 1 - 1
utils/api-scripts/src/dev-set-runtime-code.ts

@@ -32,7 +32,7 @@ async function main() {
   const provider = new WsProvider('ws://127.0.0.1:9944')
 
   let api: ApiPromise
-  let retry = 3
+  let retry = 6
   while (true) {
     try {
       api = await ApiPromise.create({ provider, types })

+ 1 - 1
utils/api-scripts/src/status.ts

@@ -12,7 +12,7 @@ async function main() {
 
   // Create the API and wait until ready
   let api: ApiPromise
-  let retry = 3
+  let retry = 6
   while (true) {
     try {
       api = await ApiPromise.create({ provider, types })