fix: reset sessionAgentMap in _resetForTesting for test isolation
- Add sessionAgentMap.clear() to _resetForTesting() - Prevents test pollution when tests run in parallel in CI
This commit is contained in:
parent
b2d618e851
commit
c249763d7e
@ -14,6 +14,7 @@ export function getMainSessionID(): string | undefined {
|
|||||||
export function _resetForTesting(): void {
|
export function _resetForTesting(): void {
|
||||||
_mainSessionID = undefined
|
_mainSessionID = undefined
|
||||||
subagentSessions.clear()
|
subagentSessions.clear()
|
||||||
|
sessionAgentMap.clear()
|
||||||
}
|
}
|
||||||
|
|
||||||
const sessionAgentMap = new Map<string, string>()
|
const sessionAgentMap = new Map<string, string>()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user