fix
This commit is contained in:
parent
fbfbfb68bf
commit
7d655911ab
@ -18,5 +18,9 @@ func TestMain(m *testing.M) {
|
|||||||
lo.Must0(toml.Unmarshal(b, &config))
|
lo.Must0(toml.Unmarshal(b, &config))
|
||||||
s, cancel := lo.Must2(server.InitializeRoute(ctx, config))
|
s, cancel := lo.Must2(server.InitializeRoute(ctx, config))
|
||||||
defer cancel()
|
defer cancel()
|
||||||
s.ListenAndServe()
|
go func() {
|
||||||
|
s.ListenAndServe()
|
||||||
|
}()
|
||||||
|
|
||||||
|
os.Exit(m.Run())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user