Skip to content

Commit 80c5bad

Browse files
committed
fix unit test
1 parent ef8127a commit 80c5bad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/mcpServer_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ describe('MCP Server Utilities', () => {
130130
})
131131

132132
it('should handle multiple special characters', () => {
133-
expect(clearString('test@#$%name')).to.equal('test_____name')
133+
expect(clearString('test@#$%name')).to.equal('test____name')
134134
})
135135

136136
it('should preserve alphanumeric characters', () => {
@@ -260,12 +260,12 @@ describe('MCP Server Integration', () => {
260260
this.timeout(10000)
261261

262262
let executionOrder = []
263-
const lock = Promise.resolve()
263+
let lock = Promise.resolve()
264264

265265
async function withLock(fn) {
266266
const prev = lock
267267
let release
268-
const newLock = new Promise(r => (release = r))
268+
lock = new Promise(r => (release = r))
269269

270270
await prev
271271
try {

0 commit comments

Comments
 (0)