build: move check of the ports to integration tests

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2017-11-09 16:38:58 -08:00
1 parent 7aa7cb1caf
commit cfa09c1cff
1 file changed
-2
-2
View File
@@ -33,7 +33,6 @@ check_test_ports() {
# tool won't gather any useful coverage information from them.
test_with_coverage_profile() {
print "* Running tests with creating coverage profile"
check_test_ports
echo "mode: count" > profile.cov
@@ -74,7 +73,6 @@ test_with_coverage_profile() {
# profile but with race condition checks.
test_race_conditions() {
print "* Running tests with the race condition detector"
check_test_ports
test_targets=$(go list ./... | grep -v '/vendor/')
env GORACE="history_size=7 halt_on_error=1" go test -v -p 1 -race $test_targets