This commit is contained in:
xmdhs 2023-10-12 21:30:17 +08:00
parent fbfbfb68bf
commit 7d655911ab
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95

View File

@ -18,5 +18,9 @@ func TestMain(m *testing.M) {
lo.Must0(toml.Unmarshal(b, &config))
s, cancel := lo.Must2(server.InitializeRoute(ctx, config))
defer cancel()
s.ListenAndServe()
go func() {
s.ListenAndServe()
}()
os.Exit(m.Run())
}