Skip to content

Commit

Permalink
fix: Move testGatewayConnectionFunc to proxy_helpers.go (#51022)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingllama authored Jan 14, 2025
1 parent 3b1518c commit 73abfe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions integration/proxy/proxy_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,8 @@ func mustConnectWebAppGateway(ctx context.Context, t *testing.T, _ *daemon.Servi
require.Equal(t, http.StatusOK, resp.StatusCode)
}

type testGatewayConnectionFunc func(context.Context, *testing.T, *daemon.Service, gateway.Gateway)

func makeMustConnectMultiPortTCPAppGateway(wantMessage string, otherTargetPort int, otherWantMessage string) testGatewayConnectionFunc {
return func(ctx context.Context, t *testing.T, d *daemon.Service, gw gateway.Gateway) {
t.Helper()
Expand Down
2 changes: 0 additions & 2 deletions integration/proxy/teleterm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,6 @@ func testDBGatewayCertRenewal(ctx context.Context, t *testing.T, params dbGatewa
)
}

type testGatewayConnectionFunc func(context.Context, *testing.T, *daemon.Service, gateway.Gateway)

type generateAndSetupUserCredsFunc func(t *testing.T, tc *libclient.TeleportClient, ttl time.Duration)

type gatewayCertRenewalParams struct {
Expand Down

0 comments on commit 73abfe8

Please sign in to comment.