Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
92096: authccl: remove useless noise from test r=andreimatei a=andreimatei

This test was enabling some logging, without that actually mattering for the test. Besides being more or less useless, this code is about to become confusing; I'm separately making the test work in multi-tenant mode, and there the logging would need to be enabled on a different server for it to still make any sense. This patch removes it instead.

Release note: None
Epic: None

Co-authored-by: Andrei Matei <[email protected]>
  • Loading branch information
craig[bot] and andreimatei committed Nov 18, 2022
2 parents 3b802d3 + 41249bf commit a713729
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/ccl/testccl/authccl/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,7 @@ func jwtRunTest(t *testing.T, insecure bool) {
base.TestServerArgs{Insecure: insecure, SocketFile: maybeSocketFile})
defer s.Stopper().Stop(context.Background())

// Enable conn/auth logging.
// We can't use the cluster settings to do this, because
// cluster settings propagate asynchronously.
testServer := s.(*server.TestServer)
pgServer := s.(*server.TestServer).PGServer().(*pgwire.Server)
pgServer.TestingEnableConnLogging()
pgServer.TestingEnableAuthLogging()

if _, err := conn.ExecContext(context.Background(), fmt.Sprintf(`CREATE USER %s`, username.TestUser)); err != nil {
t.Fatal(err)
Expand Down

0 comments on commit a713729

Please sign in to comment.