Skip to content

Commit

Permalink
bump hdk verison, fix hc sandbox args and log errors, update flake
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Nov 28, 2024
1 parent 09e6389 commit c4aadbe
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 38 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ resolver = "2"
opt-level = "z"

[workspace.dependencies]
hdk = "0.4.0-rc.0"
hdk = "0.4.0-rc.1"
46 changes: 23 additions & 23 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
# add further packages from nixpkgs
pkgs.nodejs
];

shellHook = ''
export PS1='\[\033[1;34m\][holonix:\w]\$\[\033[0m\] '
'';
};
};
};
Expand Down
12 changes: 4 additions & 8 deletions test/e2e/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,16 @@ const LAIR_PASSPHRASE = "passphrase";

export const launch = async (port: number) => {
// create sandbox conductor
const args = [
"sandbox",
"--piped",
"create",
"--in-process-lair",
"--dpki-network-seed",
Date.now().toString(),
];
const args = ["sandbox", "--piped", "create", "--in-process-lair"];
const createConductorProcess = spawn("hc", args);
createConductorProcess.stdin.write(LAIR_PASSPHRASE);
createConductorProcess.stdin.end();

let conductorDir = "";
const createConductorPromise = new Promise<void>((resolve) => {
createConductorProcess.stderr.on("data", (data) => {
console.error("[hc sandbox] ERROR: ", data.toString());
});
createConductorProcess.stdout.on("data", (data) => {
const tmpDirMatches = data.toString().match(/Created.+"(.+)"/);
if (tmpDirMatches) {
Expand Down

0 comments on commit c4aadbe

Please sign in to comment.