service/test: Fix a wrong judgment about err.

Should judge `state.Err` instead of `err`.
This commit is contained in:
chainhelen 2020-01-14 01:01:39 +08:00 committed by Alessandro Arzilli
parent 2d7b926c60
commit 666a618f47

@ -364,8 +364,8 @@ func TestClientServer_breakpointInMainThread(t *testing.T) {
}
state := <-c.Continue()
if err != nil {
t.Fatalf("Unexpected error: %v, state: %#v", err, state)
if state.Err != nil {
t.Fatalf("Unexpected error: %v, state: %#v", state.Err, state)
}
pc := state.CurrentThread.PC