Skip to content

Commit

Permalink
*: remove useless test
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Nov 16, 2022
1 parent ac01f61 commit bfb5b93
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions util/logutil/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ func TestSetLevel(t *testing.T) {
require.Equal(t, zap.DebugLevel, log.GetLevel())
}

func TestGrpcLoggerCreation(t *testing.T) {
level := "info"
conf := NewLogConfig(level, DefaultLogFormat, "", EmptyFileLogConfig, false)
_, p, err := initGRPCLogger(conf)
// assert after init grpc logger, the original conf is not changed
require.Equal(t, conf.Level, level)
require.NoError(t, err)
require.Equal(t, p.Level.Level(), zap.ErrorLevel)
os.Setenv("GRPC_DEBUG", "1")
defer os.Unsetenv("GRPC_DEBUG")
_, newP, err := initGRPCLogger(conf)
require.NoError(t, err)
require.Equal(t, newP.Level.Level(), zap.DebugLevel)
}

func TestSlowQueryLoggerCreation(t *testing.T) {
level := "Error"
conf := NewLogConfig(level, DefaultLogFormat, "", EmptyFileLogConfig, false)
Expand Down

0 comments on commit bfb5b93

Please sign in to comment.