Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed May 27, 2024
1 parent fdc4504 commit 63a6c4c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/lambda/handler-runner/bootstrap-runner/BootstrapRunner.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import process from "node:process"
import { resolve } from "node:path"
import { execa } from "execa"
import { log } from "../utils/log.js"
import { log } from "../../../utils/log.js"
import RuntimeServer from "../../RuntimeServer.js"

const { parse } = JSON
Expand All @@ -19,7 +19,7 @@ export default class BootstrapRunner {

#payload = null

#subprocess = null
#subprocess = Promise.resolve()

constructor(funOptions, env) {
const { codeDir, timeout, layers } = funOptions
Expand All @@ -38,7 +38,7 @@ export default class BootstrapRunner {
}

async cleanup() {
if (this.#subprocess && typeof this.#subprocess.kill === "function") {
if (typeof this.#subprocess.kill === "function") {
this.#subprocess.kill("SIGTERM")
this.#subprocess = Promise.resolve()
}
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import assert from "node:assert"
import { env } from "node:process"
import { join } from "desm"
import { setup, teardown } from "../../_testHelpers/index.js"
import { BASE_URL } from "../../config.js"
import { setup, teardown } from "../../../_testHelpers/index.js"
import { BASE_URL } from "../../../config.js"

describe("Provided with useDocker unset tests", function desc() {
beforeEach(() =>
Expand Down

0 comments on commit 63a6c4c

Please sign in to comment.