forked from forgejo/forgejo
Fix missing m.Run() in TestMain (#21341)
Backport #21340, add the missing m.Run()
This commit is contained in:
parent
cbebcc1c26
commit
1a9ba1c65d
2 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@ package markdown_test
|
|||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
|
@ -37,6 +38,7 @@ func TestMain(m *testing.M) {
|
|||
if err := git.InitSimple(context.Background()); err != nil {
|
||||
log.Fatal("git init failed, err: %v", err)
|
||||
}
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func TestRender_StandardLinks(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue