Removed export GODEBUG="x509sha1=1" from runTestsOnTravis.sh

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-07-28 09:19:57 -06:00
parent e38419e09e
commit 427e52dba2

View File

@@ -15,7 +15,6 @@ if [ "$1" = "compile" ]; then
find . -type f -name "*.go" | xargs misspell -error -locale US;
staticcheck $GO_LIST
if [ "$TRAVIS_TAG" != "" ]; then
export GODEBUG="x509sha1=1"
go test -race -v -run=TestVersionMatchesTag ./server -count=1 -vet=off
fi
@@ -27,7 +26,6 @@ elif [ "$1" = "no_race_tests" ]; then
# Run tests without the `-race` flag. By convention, those tests start
# with `TestNoRace`.
export GODEBUG="x509sha1=1"
go test -v -p=1 -run=TestNoRace ./... -count=1 -vet=off -timeout=30m -failfast
elif [ "$1" = "js_tests" ]; then
@@ -37,7 +35,6 @@ elif [ "$1" = "js_tests" ]; then
# tests by using the `skip_js_cluster_tests` and `skip_js_super_cluster_tests`
# build tags.
export GODEBUG="x509sha1=1"
go test -race -v -run=TestJetStream ./server -tags=skip_js_cluster_tests,skip_js_super_cluster_tests -count=1 -vet=off -timeout=30m -failfast
elif [ "$1" = "js_cluster_tests" ]; then
@@ -45,7 +42,6 @@ elif [ "$1" = "js_cluster_tests" ]; then
# Run JetStream clustered tests. By convention, all JS cluster tests
# start with `TestJetStreamCluster`.
export GODEBUG="x509sha1=1"
go test -race -v -run=TestJetStreamCluster ./server -count=1 -vet=off -timeout=30m -failfast
elif [ "$1" = "js_super_cluster_tests" ]; then
@@ -53,7 +49,6 @@ elif [ "$1" = "js_super_cluster_tests" ]; then
# Run JetStream super clustered tests. By convention, all JS super cluster
# tests with `TestJetStreamSuperCluster`.
export GODEBUG="x509sha1=1"
go test -race -v -run=TestJetStreamSuperCluster ./server -count=1 -vet=off -timeout=30m -failfast
elif [ "$1" = "srv_pkg_non_js_tests" ]; then
@@ -61,14 +56,12 @@ elif [ "$1" = "srv_pkg_non_js_tests" ]; then
# Run all non JetStream tests in the server package. We exclude the
# JS tests by using the `skip_js_tests` build tag.
export GODEBUG="x509sha1=1"
go test -race -v -p=1 ./server/... -tags=skip_js_tests -count=1 -vet=off -timeout=30m -failfast
elif [ "$1" = "non_srv_pkg_tests" ]; then
# Run all tests of all non server package.
export GODEBUG="x509sha1=1"
go test -race -v -p=1 $(go list ./... | grep -v "/server") -count=1 -vet=off -timeout=30m -failfast
fi