fix(tests): Normalize route configurations in tests to use name (remove id) and standardize route names

This commit is contained in:
2025-12-09 21:39:49 +00:00
parent 788fdd79c5
commit 05c5635a13
9 changed files with 25 additions and 24 deletions

View File

@@ -25,7 +25,7 @@ tap.test('port forwarding should not immediately close connections', async (tool
// Create proxy with forwarding route
proxy = new SmartProxy({
routes: [{
id: 'test',
name: 'test-forward',
match: { ports: 9999 },
action: {
type: 'forward',
@@ -58,7 +58,7 @@ tap.test('TLS passthrough should work correctly', async () => {
// Create proxy with TLS passthrough
proxy = new SmartProxy({
routes: [{
id: 'tls-test',
name: 'tls-test',
match: { ports: 8443, domains: 'test.example.com' },
action: {
type: 'forward',