mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-01 16:03:55 +08:00
Fix copy-paste error in app access test (#68259)
We were registering cleanup actions to close the same streamableHTTPServer twice, and never closing streamableHTTPTLSServer.
This commit is contained in:
@@ -72,7 +72,7 @@ func TestAppAccess(t *testing.T) {
|
||||
|
||||
streamableHTTPTLSServer := httptest.NewTLSServer(mcpserver.NewStreamableHTTPServer(mcptest.NewServer()))
|
||||
streamableHTTPTLSServerURL := "mcp+" + streamableHTTPTLSServer.URL + "/mcp"
|
||||
t.Cleanup(streamableHTTPServer.Close)
|
||||
t.Cleanup(streamableHTTPTLSServer.Close)
|
||||
|
||||
extraApps := []servicecfg.App{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user