Skip to content

Commit

Permalink
Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmk committed Nov 15, 2023
1 parent 4a01f70 commit 445842c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/helpers/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if (argv.h || argv.help) {

// Windows can't handle signals to stop/start chaos
if (Deno.build.os === "windows" && !argv["chaos"]) {
console.log("use --chaos flag to restart cluster servers randomly")
console.log("use --chaos flag to restart cluster servers randomly");
}

const count = argv["count"] as number || 3;
Expand Down
10 changes: 4 additions & 6 deletions tests/helpers/launcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ function getTmpFolder() {
let tmpDir = Deno.env.get("TMPDIR");
if (!tmpDir) {
// Unix or Windows home
tmpDir = pathNorm(Deno.env.get("HOME") || Deno.env.get("USERPROFILE")) + "/tmp";
tmpDir = pathNorm(Deno.env.get("HOME") || Deno.env.get("USERPROFILE"))
+ "/tmp";
}
const tmp = pathNorm(`${tmpDir}/nats_launcher`);
Deno.mkdirSync(tmp, { recursive: true });
Expand Down Expand Up @@ -547,11 +548,8 @@ export class NatsServer implements PortInfo {

static async start(conf?: any, debug = false): Promise<NatsServer> {
const isWindows = Deno.build.os === "windows";
const exe = Deno.env.get("CI")
? "nats-server/nats-server"
: isWindows
? "nats-server.exe"
: "nats-server";
const natsServerExe = isWindows ? "nats-server.exe" : "nats-server";
const exe = Deno.env.get("CI") ? "nats-server/nats-server" : natsServerExe;
const tmp = getTmpFolder();
conf = NatsServer.confDefaults(conf);
conf.ports_file_dir = tmp;
Expand Down

0 comments on commit 445842c

Please sign in to comment.