@@ -31,15 +31,15 @@ import (
3131 "github.com/stretchr/testify/require"
3232)
3333
34- // Tests in this file have a linter exception against casting to *TestServer .
34+ // Tests in this file have a linter exception against casting to *testServer .
3535
3636func TestPanicRecovery (t * testing.T ) {
3737 defer leaktest .AfterTest (t )()
3838 defer log .ScopeWithoutShowLogs (t ).Close (t )
3939
4040 s := serverutils .StartServerOnly (t , base.TestServerArgs {})
4141 defer s .Stopper ().Stop (context .Background ())
42- ts := s .(* TestServer )
42+ ts := s .(* testServer )
4343
4444 // Enable a test-only endpoint that induces a panic.
4545 ts .http .mux .Handle ("/panic" , http .HandlerFunc (func (http.ResponseWriter , * http.Request ) {
@@ -109,7 +109,7 @@ func TestSocketAutoNumbering(t *testing.T) {
109109 _ , expectedPort , err := addr .SplitHostPort (s .SQLAddr (), "" )
110110 require .NoError (t , err )
111111
112- if socketPath := s .(* TestServer ).Cfg .SocketFile ; ! strings .HasSuffix (socketPath , "." + expectedPort ) {
112+ if socketPath := s .(* testServer ).Cfg .SocketFile ; ! strings .HasSuffix (socketPath , "." + expectedPort ) {
113113 t .Errorf ("expected unix socket ending with port %q, got %q" , expectedPort , socketPath )
114114 }
115115}
@@ -127,7 +127,7 @@ func TestInternalSQL(t *testing.T) {
127127 conf .User = "root"
128128 // Configure pgx to connect on the loopback listener.
129129 conf .DialFunc = func (ctx context.Context , network , addr string ) (net.Conn , error ) {
130- return s .(* TestServer ).Server .loopbackPgL .Connect (ctx )
130+ return s .(* testServer ).Server .loopbackPgL .Connect (ctx )
131131 }
132132 conn , err := pgx .ConnectConfig (ctx , conf )
133133 require .NoError (t , err )
0 commit comments