mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
service/test: assert error on CreateBreakpoint in TestNextInstruction (#3979)
This commit is contained in:
@ -3131,6 +3131,7 @@ func TestNextInstruction(t *testing.T) {
|
|||||||
withTestClient2("testprog", t, func(c service.Client) {
|
withTestClient2("testprog", t, func(c service.Client) {
|
||||||
fp := testProgPath(t, "testprog")
|
fp := testProgPath(t, "testprog")
|
||||||
_, err := c.CreateBreakpoint(&api.Breakpoint{File: fp, Line: 19})
|
_, err := c.CreateBreakpoint(&api.Breakpoint{File: fp, Line: 19})
|
||||||
|
assertNoError(err, t, "CreateBreakpoint()")
|
||||||
state := <-c.Continue()
|
state := <-c.Continue()
|
||||||
assertNoError(state.Err, t, "Continue()")
|
assertNoError(state.Err, t, "Continue()")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user