Skip to content

Commit f104659

Browse files
committed
update tests
1 parent eac163c commit f104659

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

apps/sim/lib/mcp/utils.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { describe, expect, it } from 'vitest'
2+
import { DEFAULT_EXECUTION_TIMEOUT_MS } from '@/lib/core/execution-limits'
23
import {
34
categorizeError,
45
createMcpToolId,
@@ -81,8 +82,8 @@ describe('generateMcpServerId', () => {
8182
})
8283

8384
describe('MCP_CONSTANTS', () => {
84-
it.concurrent('has correct execution timeout (5 minutes)', () => {
85-
expect(MCP_CONSTANTS.EXECUTION_TIMEOUT).toBe(300000)
85+
it.concurrent('has correct execution timeout', () => {
86+
expect(MCP_CONSTANTS.EXECUTION_TIMEOUT).toBe(DEFAULT_EXECUTION_TIMEOUT_MS)
8687
})
8788

8889
it.concurrent('has correct cache timeout (5 minutes)', () => {
@@ -107,8 +108,8 @@ describe('MCP_CONSTANTS', () => {
107108
})
108109

109110
describe('MCP_CLIENT_CONSTANTS', () => {
110-
it.concurrent('has correct client timeout (5 minutes)', () => {
111-
expect(MCP_CLIENT_CONSTANTS.CLIENT_TIMEOUT).toBe(300000)
111+
it.concurrent('has correct client timeout', () => {
112+
expect(MCP_CLIENT_CONSTANTS.CLIENT_TIMEOUT).toBe(DEFAULT_EXECUTION_TIMEOUT_MS)
112113
})
113114

114115
it.concurrent('has correct auto refresh interval (5 minutes)', () => {

0 commit comments

Comments
 (0)