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 cast
import (
"context"
"io/ioutil"
"os"
"testing"
@ -79,7 +80,7 @@ func TestCastModuleRefreshDevices(t *testing.T) {
defer server.Stop()
result, err := server.ExecFuncByName("refreshDevices")
result, err := server.ExecFuncByName(context.Background(), "refreshDevices")
if err != nil {
t.Error(errors.WithStack(err))
}