This commit is contained in:
Juergen Kunz
2025-07-17 15:34:58 +00:00
parent 82df9a6f52
commit b26abbfd87
7 changed files with 38 additions and 37 deletions

View File

@@ -400,9 +400,9 @@ tap.test('should use round robin for multiple target hosts in domain config', as
// For route-based approach, the actual round-robin logic happens in connection handling
// Just make sure our config has the expected hosts
expect(Array.isArray(routeConfig.action.target.host)).toBeTrue();
expect(routeConfig.action.target.host).toContain('hostA');
expect(routeConfig.action.target.host).toContain('hostB');
expect(Array.isArray(routeConfig.action.targets[0].host)).toBeTrue();
expect(routeConfig.action.targets[0].host).toContain('hostA');
expect(routeConfig.action.targets[0].host).toContain('hostB');
});
// CLEANUP: Tear down all servers and proxies