Skip to content

Commit

Permalink
chore(testkit): indexer cannot stop in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
homura committed Sep 17, 2023
1 parent a50111a commit 5872ca2
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/testkit/src/ckb-indexer-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import compareVersions from "compare-versions";
import os from "os";
// TODO dep
import downloadAndExtract from "download";
import childProcess from "node:child_process";

function log(info: string): void {
console.log(info);
Expand Down Expand Up @@ -85,10 +86,7 @@ export async function startCKBIndexer(CKBVersion?: string): Promise<void> {
await downloadCKBIndexer();
console.log("start indexer at", new Date().toLocaleString());

shell.exec(
`RUST_LOG=info ./ckb-indexer -c http://127.0.0.1:8118/rpc -l 127.0.0.1:8120 -s indexer-store-tmp`,
{
async: true,
}
childProcess.exec(
`RUST_LOG=info ./ckb-indexer -c http://127.0.0.1:8118/rpc -l 127.0.0.1:8120 -s indexer-store-tmp`
);
}

0 comments on commit 5872ca2

Please sign in to comment.