Skip to content

Commit 63a6c4c

Browse files
committed
fix tests
1 parent fdc4504 commit 63a6c4c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/lambda/handler-runner/bootstrap-runner/BootstrapRunner.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import process from "node:process"
22
import { resolve } from "node:path"
33
import { execa } from "execa"
4-
import { log } from "../utils/log.js"
4+
import { log } from "../../../utils/log.js"
55
import RuntimeServer from "../../RuntimeServer.js"
66

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

2020
#payload = null
2121

22-
#subprocess = null
22+
#subprocess = Promise.resolve()
2323

2424
constructor(funOptions, env) {
2525
const { codeDir, timeout, layers } = funOptions
@@ -38,7 +38,7 @@ export default class BootstrapRunner {
3838
}
3939

4040
async cleanup() {
41-
if (this.#subprocess && typeof this.#subprocess.kill === "function") {
41+
if (typeof this.#subprocess.kill === "function") {
4242
this.#subprocess.kill("SIGTERM")
4343
this.#subprocess = Promise.resolve()
4444
}

tests/lambda-run-mode/provided/inProcessProvided.test.js tests/lambda-run-mode/provided/bash-scripts/inProcessProvided.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import assert from "node:assert"
22
import { env } from "node:process"
33
import { join } from "desm"
4-
import { setup, teardown } from "../../_testHelpers/index.js"
5-
import { BASE_URL } from "../../config.js"
4+
import { setup, teardown } from "../../../_testHelpers/index.js"
5+
import { BASE_URL } from "../../../config.js"
66

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

0 commit comments

Comments
 (0)