-
Notifications
You must be signed in to change notification settings - Fork 15
Fix test GitHub mcp session #1630
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9423544
c3c93fd
c802895
80b199b
06a6012
5aabb58
e861109
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -167,6 +167,7 @@ func TestSafeinputsHTTPBackend(t *testing.T) { | |
|
|
||
| cmd := exec.CommandContext(ctx, binaryPath, | ||
| "--config-stdin", | ||
| "--listen", "127.0.0.1:3001", | ||
| "--routed", | ||
| ) | ||
|
Comment on lines
168
to
172
|
||
|
|
||
|
|
@@ -185,8 +186,14 @@ func TestSafeinputsHTTPBackend(t *testing.T) { | |
| cmd.Wait() | ||
| }() | ||
|
|
||
| // Wait for gateway to start and read the configuration output | ||
| time.Sleep(2 * time.Second) | ||
| // Wait for the gateway HTTP server to be ready | ||
| if !waitForServer(t, "http://127.0.0.1:3001/health", 20*time.Second) { | ||
| t.Logf("STDOUT: %s", stdout.String()) | ||
| t.Logf("STDERR: %s", stderr.String()) | ||
| t.Fatal("Gateway did not start in time") | ||
| } | ||
| // Small delay to ensure stdout JSON is written | ||
| time.Sleep(200 * time.Millisecond) | ||
|
|
||
| // Parse the gateway output to get the actual port | ||
| var gatewayConfig struct { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.