Skip to content

Commit

Permalink
fix: try prevent hang on ci
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Jan 19, 2024
1 parent 1d53bd1 commit 51d92fc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
3 changes: 1 addition & 2 deletions packages/scripts/integration-testing/simpleTest204.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from "fs/promises";
import os from "os";

import { buildBinaries, startCosmosLocalnet } from "./cosmos";
import { teritoriLocalnetNetwork } from "../../networks/teritori-localnet";
Expand All @@ -25,7 +24,7 @@ const main = async () => {
);

// stop
v204Process.kill(os.constants.signals.SIGINT);
v204Process.kill();
await v204Result;

await fs.rm(home, { recursive: true, force: true });
Expand Down
7 changes: 3 additions & 4 deletions packages/scripts/integration-testing/upgradeTest120to204.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from "fs/promises";
import os from "os";
import path from "path";

import {
Expand Down Expand Up @@ -41,7 +40,7 @@ const main = async () => {
validatorWalletName,
home,
);
v120Process.kill(os.constants.signals.SIGINT);
v120Process.kill();
await v120Result;

upgradeHeight = await runUpgrade(
Expand Down Expand Up @@ -87,7 +86,7 @@ const main = async () => {
"testnet-adm",
);

v204Process.kill(os.constants.signals.SIGINT);
v204Process.kill();
await v204Result;

await fs.rm(home, { recursive: true, force: true });
Expand All @@ -110,7 +109,7 @@ const runUpgrade = async (
validatorWalletName,
home,
);
process.kill(os.constants.signals.SIGINT);
process.kill();
await result;
return upgradeHeight;
};
Expand Down
5 changes: 2 additions & 3 deletions packages/scripts/integration-testing/upgradeTest142to204.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from "fs/promises";
import os from "os";
import path from "path";

import {
Expand Down Expand Up @@ -38,7 +37,7 @@ const main = async () => {
validatorWalletName,
home,
);
v142Process.kill(os.constants.signals.SIGINT);
v142Process.kill();
await v142Result;

await replaceInFile(
Expand All @@ -64,7 +63,7 @@ const main = async () => {
);

// stop
v204Process.kill(os.constants.signals.SIGINT);
v204Process.kill();
await result;

await fs.rm(home, { recursive: true, force: true });
Expand Down
5 changes: 2 additions & 3 deletions packages/scripts/integration-testing/upgradeTest142toDir.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { program } from "commander";
import fs from "fs/promises";
import os from "os";
import path from "path";

import {
Expand Down Expand Up @@ -42,7 +41,7 @@ const main = async () => {
validatorWalletName,
home,
);
v142Process.kill(os.constants.signals.SIGINT);
v142Process.kill();
await v142Result;

await replaceInFile(
Expand All @@ -68,7 +67,7 @@ const main = async () => {
);

// stop
v203Process.kill(os.constants.signals.SIGINT);
v203Process.kill();
await result;

await fs.rm(home, { recursive: true, force: true });
Expand Down

0 comments on commit 51d92fc

Please sign in to comment.