Skip to main content
Glama
retry-config.test.ts887 B
import { describe, it, expect } from 'vitest'; import { WEB_API_RETRY_CONFIG, WEB_API_TIMEOUT } from '../../src/utils/retry-config.js'; describe('Retry Configuration Constants', () => { it('should define WEB_API_RETRY_CONFIG with correct default values', () => { // Assert - Verify configuration matches documented defaults expect(WEB_API_RETRY_CONFIG).toEqual({ maxRetries: 3, initialDelay: 1000, }); }); it('should define WEB_API_TIMEOUT with correct value', () => { // Assert - Verify timeout matches documented 30 second limit expect(WEB_API_TIMEOUT).toBe(30000); }); it('should use values consistent with retry.ts defaults', () => { // Assert - Ensure retry config doesn't override maxDelay // (maxDelay should use the default 10000ms from RetryOptions) expect(WEB_API_RETRY_CONFIG).not.toHaveProperty('maxDelay'); }); });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rawveg/ollama-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server