Skip to content

Commit

Permalink
Merge d30fe56 into 6dd8997
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjian-pg authored Mar 21, 2024
2 parents 6dd8997 + d30fe56 commit 7a248da
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions common/logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ func TestGetLogger(t *testing.T) {
// not yet init get default log
log := GetLogger()
config := Config{
Level: "degug",
Level: "debug",
}
_ = InitLogger(config)
// after init logger
log2 := GetLogger()
assert.NotEqual(t, log, log2)

// the secend init logger
config.Level = "info"
_ = InitLogger(config)
log3 := GetLogger()
assert.NotEqual(t, log2, log3)
reset()
}

Expand All @@ -66,13 +61,6 @@ func TestSetLogger(t *testing.T) {
assert.NotEqual(t, log, log2)
assert.Equal(t, log1, log2)

config := Config{
Level: "degug",
}
_ = InitLogger(config)
// after init logger
log3 := GetLogger()
assert.NotEqual(t, log2, log3)
reset()
}

Expand Down

0 comments on commit 7a248da

Please sign in to comment.