@@ -636,9 +636,7 @@ func TestDebuggerAutomaticStop(t *testing.T) {
636
636
637
637
stk := newTestStack (testEvents ... )
638
638
eh := newTestEventHandler ()
639
- l := logging .New ()
640
- l .SetLevel (logging .Debug )
641
- _ , s , _ := setupDebuggerSession (ctx , stk , tc .props , eh .HandleEvent , l )
639
+ _ , s , _ := setupDebuggerSession (ctx , stk , tc .props , eh .HandleEvent , nil )
642
640
643
641
if err := s .start (); err != nil {
644
642
t .Fatalf ("Unexpected error: %v" , err )
@@ -868,8 +866,6 @@ func TestDebuggerStopOnBreakpoint(t *testing.T) {
868
866
}
869
867
}
870
868
871
- // TODO: Test resume
872
-
873
869
func TestDebuggerStepIn (t * testing.T ) {
874
870
tests := []struct {
875
871
note string
@@ -978,9 +974,7 @@ func TestDebuggerStepIn(t *testing.T) {
978
974
defer close (doneCh )
979
975
go func () {
980
976
for {
981
- fmt .Println ("WAITING FOR EVENT" )
982
977
e := eh .NextBlocking ()
983
- fmt .Printf ("EVENT: %v\n " , e )
984
978
985
979
if e == nil || e .Type == TerminatedEventType {
986
980
break
@@ -990,7 +984,6 @@ func TestDebuggerStepIn(t *testing.T) {
990
984
stoppedAt = append (stoppedAt , e .stackIndex )
991
985
}
992
986
}
993
- fmt .Println ("DONE" )
994
987
doneCh <- struct {}{}
995
988
}()
996
989
@@ -1319,9 +1312,7 @@ func TestDebuggerStepOut(t *testing.T) {
1319
1312
defer close (doneCh )
1320
1313
go func () {
1321
1314
for {
1322
- fmt .Println ("WAITING FOR EVENT" )
1323
1315
e := eh .NextBlocking ()
1324
- fmt .Printf ("EVENT: %v\n " , e )
1325
1316
1326
1317
if e == nil || e .Type == TerminatedEventType {
1327
1318
break
@@ -1331,7 +1322,6 @@ func TestDebuggerStepOut(t *testing.T) {
1331
1322
stoppedAt = append (stoppedAt , e .stackIndex )
1332
1323
}
1333
1324
}
1334
- fmt .Println ("DONE" )
1335
1325
doneCh <- struct {}{}
1336
1326
}()
1337
1327
@@ -1467,12 +1457,9 @@ func TestDebuggerStackTrace(t *testing.T) {
1467
1457
ctx , cancel := context .WithDeadline (context .Background (), time .Now ().Add (5 * time .Second ))
1468
1458
defer cancel ()
1469
1459
1470
- l := logging .New ()
1471
- l .SetLevel (logging .Debug )
1472
-
1473
1460
stk := newTestStack (tc .events ... )
1474
1461
eh := newTestEventHandler ()
1475
- _ , s , thr := setupDebuggerSession (ctx , stk , LaunchProperties {}, eh .HandleEvent , l )
1462
+ _ , s , thr := setupDebuggerSession (ctx , stk , LaunchProperties {}, eh .HandleEvent , nil )
1476
1463
1477
1464
if err := s .start (); err != nil {
1478
1465
t .Fatalf ("Unexpected error: %v" , err )
0 commit comments