feat(server): handle panic in runtime

ref #2
This commit is contained in:
2023-03-01 13:04:40 +01:00
parent fefcba5901
commit 8789b85d92
8 changed files with 41 additions and 15 deletions

View File

@ -1,6 +1,7 @@
package store
import (
"context"
"io/ioutil"
"testing"
@ -34,7 +35,7 @@ func TestStoreModule(t *testing.T) {
t.Fatalf("%+v", errors.WithStack(err))
}
if _, err := server.ExecFuncByName("testStore"); err != nil {
if _, err := server.ExecFuncByName(context.Background(), "testStore"); err != nil {
t.Fatalf("%+v", errors.WithStack(err))
}