From 2ef94897cc49b5fea2f91105a1bd3b35d6d01537 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 29 Nov 2023 14:32:34 +0100 Subject: [PATCH 1/2] skip flaky test (#1830) --- storagemarket/provider_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storagemarket/provider_test.go b/storagemarket/provider_test.go index 1d7f48427..ba15889a8 100644 --- a/storagemarket/provider_test.go +++ b/storagemarket/provider_test.go @@ -168,6 +168,8 @@ func TestMultipleDealsConcurrent(t *testing.T) { } func TestDealsRejectedForFunds(t *testing.T) { + t.Skip("flaky test") + ctx := context.Background() // setup the provider test harness with configured publish fee per deal and a total wallet balance. harness := NewHarness(t, withMinPublishFees(abi.NewTokenAmount(100)), withPublishWalletBal(1000)) From 6e412c2ae97510429e0217aa4404c515a6ac72e2 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Wed, 29 Nov 2023 15:21:42 +0100 Subject: [PATCH 2/2] booster-http: add pprof-port flag (#1831) --- cmd/booster-http/run.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/booster-http/run.go b/cmd/booster-http/run.go index 353d4293c..b00ec9851 100644 --- a/cmd/booster-http/run.go +++ b/cmd/booster-http/run.go @@ -50,6 +50,11 @@ var runCmd = &cli.Command{ Name: "pprof", Usage: "run pprof web server on localhost:6070", }, + &cli.UintFlag{ + Name: "pprof-port", + Usage: "the http port to serve pprof on", + Value: 6070, + }, &cli.StringFlag{ Name: "base-path", Usage: "the base path at which to run the web server", @@ -178,8 +183,9 @@ var runCmd = &cli.Command{ } if cctx.Bool("pprof") { + pprofPort := cctx.Int("pprof-port") go func() { - err := http.ListenAndServe("localhost:6070", nil) + err := http.ListenAndServe(fmt.Sprintf("localhost:%d", pprofPort), nil) if err != nil { log.Error(err) }