From 9664783eef50fd034cfa44b4a82001e782ee6322 Mon Sep 17 00:00:00 2001 From: Abdul Rabbani Date: Thu, 23 Jun 2022 08:26:23 -0400 Subject: [PATCH] Remove pprof --- pkg/beaconclient/capturehead_test.go | 3 +-- pkg/beaconclient/systemvalidation_test.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/beaconclient/capturehead_test.go b/pkg/beaconclient/capturehead_test.go index 40587e3..8362bb3 100644 --- a/pkg/beaconclient/capturehead_test.go +++ b/pkg/beaconclient/capturehead_test.go @@ -24,7 +24,6 @@ import ( "os" "path/filepath" "runtime" - "runtime/pprof" "strconv" "sync/atomic" "time" @@ -1038,7 +1037,7 @@ func testStopHeadTracking(ctx context.Context, bc *beaconclient.BeaconClient, st time.Sleep(3 * time.Second) endNum := runtime.NumGoroutine() - pprof.Lookup("goroutine").WriteTo(os.Stdout, 1) + //pprof.Lookup("goroutine").WriteTo(os.Stdout, 1) log.WithField("startNum", startGoRoutines).Info("Start Go routine number") log.WithField("endNum", endNum).Info("End Go routine number") //Expect(endNum <= startGoRoutines).To(BeTrue()) diff --git a/pkg/beaconclient/systemvalidation_test.go b/pkg/beaconclient/systemvalidation_test.go index 3efbd6b..807ea59 100644 --- a/pkg/beaconclient/systemvalidation_test.go +++ b/pkg/beaconclient/systemvalidation_test.go @@ -73,7 +73,7 @@ func processProdHeadBlocks(bc *beaconclient.BeaconClient, expectedInserts, expec validateMetrics(bc, expectedInserts, expectedReorgs, expectedKnownGaps, expectedKnownGapsReprocessError) cancel() - time.Sleep(4) + time.Sleep(4 * time.Second) testStopSystemHeadTracking(ctx, bc) }