From: Matt Joiner Date: Sat, 20 Apr 2024 00:56:59 +0000 (+1000) Subject: Add envpprof to issue-930 test X-Git-Tag: v1.56.0~16 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bd2b7b6c62b33f3bfaaea0b755800958820b3c95;p=btrtrc.git Add envpprof to issue-930 test --- diff --git a/tests/issue-930/main.go b/tests/issue-930/main.go index 9d7027ef..7cf6690c 100644 --- a/tests/issue-930/main.go +++ b/tests/issue-930/main.go @@ -4,6 +4,8 @@ import ( "math/rand" "os" + "github.com/anacrolix/envpprof" + "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/storage" @@ -11,7 +13,7 @@ import ( var client *torrent.Client -var index int = 0 +var index = 0 var infoHashes = []string{ "6853ab2b86b2cb6a3c778b8aafe3dffd94242321", "4d29c6c02c97caad937d8a9b66b0bb1b6f7cbbfe", @@ -37,6 +39,7 @@ func init() { } func main() { + defer envpprof.Stop() if len(os.Args) > 1 { noServer() return