Skip to content

Commit

Permalink
get tmpDir by default
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Feb 2, 2024
1 parent ef33643 commit 3635349
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/whale-api/src/e2e.defid.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ export class DefidRpc {
}

export class DefidBin {
tmpDir = ''
tmpDir = `/tmp/${uuidv4()}`
binary: ChildProcess | null = null

port = this.randomPort()
Expand All @@ -702,7 +702,6 @@ export class DefidBin {
}

async start (opts: string[] = []): Promise<void> {
this.tmpDir = `/tmp/${uuidv4()}`
fs.mkdirSync(this.tmpDir)

if (process.env.DEFID === undefined) {
Expand Down

0 comments on commit 3635349

Please sign in to comment.