]> Cypherpunks.ru repositories - gostls13.git/commitdiff
bytes: remove builders check from compare test
authorJohan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Fri, 30 Jun 2023 20:48:10 +0000 (13:48 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 13 Jul 2023 23:11:42 +0000 (23:11 +0000)
TestCompareBytes already took into account the -short
testing flag, however, only if not run on one of the Go builders.
This extra condition is no longer necessary as we have much
better longtest coverage than we did when the check was added.

Fixes #61071

Change-Id: I0fc716f4e7baa04019ee00608f223f27c931edcc
Reviewed-on: https://go-review.googlesource.com/c/go/+/507416
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
TryBot-Bypass: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/bytes/compare_test.go

index ac39f880f4c3ad866d33e2e3b6512c70555dfaae..067530b6d80cd0597eec9a42c4436f2db94c848f 100644 (file)
@@ -7,7 +7,6 @@ package bytes_test
 import (
        . "bytes"
        "fmt"
-       "internal/testenv"
        "testing"
 )
 
@@ -73,7 +72,7 @@ func TestCompareBytes(t *testing.T) {
        }
        lengths = append(lengths, 256, 512, 1024, 1333, 4095, 4096, 4097)
 
-       if !testing.Short() || testenv.Builder() != "" {
+       if !testing.Short() {
                lengths = append(lengths, 65535, 65536, 65537, 99999)
        }