Преглед на файлове

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 })