Skip to content

Commit 2579e16

Browse files
committed
fix: use separate PTYManager instance in web server tests to avoid interference from global manager mocks
1 parent ffcedc5 commit 2579e16

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/web-server.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect, beforeEach, afterEach } from 'bun:test'
22
import { startWebServer, stopWebServer, getServerUrl } from '../src/web/server/server.ts'
3-
import { PTYManager, manager } from '../src/plugin/pty/manager.ts'
3+
import { PTYManager } from '../src/plugin/pty/manager.ts'
44

55
describe.serial('Web Server', () => {
66
const fakeClient = {
@@ -14,7 +14,7 @@ describe.serial('Web Server', () => {
1414
let testManager: PTYManager
1515

1616
beforeEach(() => {
17-
testManager = manager
17+
testManager = new PTYManager()
1818
testManager.init(fakeClient)
1919
})
2020

0 commit comments

Comments
 (0)