make the benchmark suite compatible with Go 1.13

Unfortunately, there doesn't seem to be a way to keep the samples flag.
This commit is contained in:
Marten Seemann
2019-09-05 10:01:15 +07:00
parent d1489e5045
commit 305d6e0fbe
5 changed files with 77 additions and 70 deletions

View File

@@ -16,11 +16,11 @@ fi
if [ ${TESTMODE} == "integration" ]; then
# run benchmark tests
ginkgo -randomizeAllSpecs -randomizeSuites -trace benchmark -- -samples=1
ginkgo -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=10
# run benchmark tests with the Go race detector
# The Go race detector only works on amd64.
if [ ${TRAVIS_GOARCH} == 'amd64' ]; then
ginkgo -race -randomizeAllSpecs -randomizeSuites -trace benchmark -- -samples=1 -size=10
ginkgo -race -randomizeAllSpecs -randomizeSuites -trace benchmark -- -size=5
fi
# run integration tests
ginkgo -r -v -randomizeAllSpecs -randomizeSuites -trace integrationtests