Skip to content

Commit

Permalink
strip trailing newline on go-routines dump
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Jan 21, 2025
1 parent 3d4e7b5 commit 53787e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethclient/simulated/backend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ func collectGoroutineStacks() map[string]int {

// split all stack-traces by go-routine
stacks := strings.Split(string(buf[:stackLen]), "\n\n")

stacks[len(stacks)-1] = strings.TrimRight(stacks[len(stacks)-1], "\n")
res := make(map[string]int)

for i := range stacks {
Expand Down

0 comments on commit 53787e3

Please sign in to comment.