Skip to content

Commit 48cce69

Browse files
Add ldflag to srv_pkg_non_js_tests tests (#5668)
During a release the `TestVersionMatchesTag` test is also run as part of this set of tests.
2 parents c8eb521 + a4ed4f1 commit 48cce69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/runTestsOnTravis.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ elif [ "$1" = "srv_pkg_non_js_tests" ]; then
100100
# by using `skip_js_tests`, MQTT tests by using `skip_mqtt_tests` and
101101
# message tracing tests by using `skip_msgtrace_tests`.
102102

103-
go test -race -v -p=1 ./server/... -tags=skip_store_tests,skip_js_tests,skip_mqtt_tests,skip_msgtrace_tests -count=1 -vet=off -timeout=30m -failfast
103+
# Also including the ldflag with the version since this includes the `TestVersionMatchesTag`.
104+
go test -race -v -p=1 ./server/... -ldflags="-X=github.com/nats-io/nats-server/v2/server.serverVersion=$TRAVIS_TAG" -tags=skip_store_tests,skip_js_tests,skip_mqtt_tests,skip_msgtrace_tests -count=1 -vet=off -timeout=30m -failfast
104105

105106
elif [ "$1" = "non_srv_pkg_tests" ]; then
106107

0 commit comments

Comments
 (0)