Skip to content

Commit

Permalink
no runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
earthboundkid committed Jun 21, 2023
1 parent b85e223 commit 91b9862
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/slices/slices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"internal/race"
"internal/testenv"
"math"
"runtime"
"strings"
"testing"
)
Expand Down Expand Up @@ -1106,7 +1105,7 @@ func TestConcat(t *testing.T) {
allocs := testing.AllocsPerRun(5, func() {
sink = Concat(tc.s...)
})
runtime.KeepAlive(sink)
_ = sink
if allocs > 1 {
t.Fatalf("Concat(%v) had %f allocs; expected 1", tc.s, allocs)
}
Expand Down

0 comments on commit 91b9862

Please sign in to comment.