Skip to content

Commit

Permalink
cli-common: XXX debug test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Apr 17, 2024
1 parent 47d1c47 commit bef4291
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/cli-common/tests/basic.t.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Data, type Name } from "@ndn/packet";
import { Closers } from "@ndn/util";
import { makeTmpDir } from "@ndn/util/test-fixture/tmp";
import { afterAll, expect, test } from "vitest";
import { existsSync } from "node:fs";

const closers = new Closers();
afterAll(closers.close);
Expand All @@ -26,9 +27,12 @@ const nfd = await new FakeNfd().open();
closers.push(nfd);
process.env.NDNTS_UPLINK = `tcp://127.0.0.1:${nfd.port}`;

console.log("A", process.env.NDNTS_KEYCHAIN, tmpDir.name, existsSync(tmpDir.name));

const { openUplinks, getSigner } = await import("..");

test("openKeyChain", async () => {
console.log("B", process.env.NDNTS_KEYCHAIN, tmpDir.name, existsSync(tmpDir.name));
const signer = await getSigner();
const data = new Data();
await signer.sign(data);
Expand Down

0 comments on commit bef4291

Please sign in to comment.