Cover idempotent runtime server shutdown in integration tests
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
14fcd1acc4
commit
cfd273e78f
1 file changed
+10
@@ -121,6 +121,16 @@ afterEach(async () => {
|
||||
});
|
||||
|
||||
describe("runtimeApiServer", () => {
|
||||
it("allows runtime server close to be called multiple times", async () => {
|
||||
const server = await startRuntimeApiServer({
|
||||
port: 0,
|
||||
launchCwd: process.cwd(),
|
||||
});
|
||||
|
||||
await expect(server.close()).resolves.toBeUndefined();
|
||||
await expect(server.close()).resolves.toBeUndefined();
|
||||
});
|
||||
|
||||
it("rejects empty auth token configuration", async () => {
|
||||
await expect(
|
||||
startRuntimeApiServer({
|
||||
|
||||
Reference in new issue
Block a user