mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-30 23:53:41 +02:00
build: move check of the ports to integration tests
This commit is contained in:
committed by
Olaoluwa Osuntokun
parent
7aa7cb1caf
commit
cfa09c1cff
@@ -33,7 +33,6 @@ check_test_ports() {
|
|||||||
# tool won't gather any useful coverage information from them.
|
# tool won't gather any useful coverage information from them.
|
||||||
test_with_coverage_profile() {
|
test_with_coverage_profile() {
|
||||||
print "* Running tests with creating coverage profile"
|
print "* Running tests with creating coverage profile"
|
||||||
check_test_ports
|
|
||||||
|
|
||||||
echo "mode: count" > profile.cov
|
echo "mode: count" > profile.cov
|
||||||
|
|
||||||
@@ -74,7 +73,6 @@ test_with_coverage_profile() {
|
|||||||
# profile but with race condition checks.
|
# profile but with race condition checks.
|
||||||
test_race_conditions() {
|
test_race_conditions() {
|
||||||
print "* Running tests with the race condition detector"
|
print "* Running tests with the race condition detector"
|
||||||
check_test_ports
|
|
||||||
|
|
||||||
test_targets=$(go list ./... | grep -v '/vendor/')
|
test_targets=$(go list ./... | grep -v '/vendor/')
|
||||||
env GORACE="history_size=7 halt_on_error=1" go test -v -p 1 -race $test_targets
|
env GORACE="history_size=7 halt_on_error=1" go test -v -p 1 -race $test_targets
|
||||||
|
Reference in New Issue
Block a user