mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 23:12:43 +00:00
[TESTS] add log.Level to test.NewLogChecker
So the caller can check log events at the desired level instead of being limited to the default level log.INFO (cherry picked from commit2fbf5f9555
) (cherry picked from commite2137a3147
)
This commit is contained in:
parent
6fb55e9c08
commit
209610075a
4 changed files with 22 additions and 7 deletions
|
@ -496,7 +496,7 @@ func TestGiteaUploadUpdateGitForPullRequest(t *testing.T) {
|
|||
t.Run(testCase.name, func(t *testing.T) {
|
||||
stopMark := fmt.Sprintf(">>>>>>>>>>>>>STOP: %s<<<<<<<<<<<<<<<", testCase.name)
|
||||
|
||||
logChecker, cleanup := test.NewLogChecker(log.DEFAULT)
|
||||
logChecker, cleanup := test.NewLogChecker(log.DEFAULT, log.INFO)
|
||||
logChecker.Filter(testCase.logFilter...).StopMark(stopMark)
|
||||
defer cleanup()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue