Skip to content

Commit

Permalink
fix(java): Pass missing integration test flags to native image test c…
Browse files Browse the repository at this point in the history
…ommands (#1309)

Source-Link: googleapis/synthtool@21f4a8d
Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:b5ce87328633e27aa3e65d42e84cc722519859349760cdad48c7b5051b519a7d
  • Loading branch information
gcf-owl-bot[bot] committed Jan 4, 2022
1 parent e833abe commit be91177
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
docker:
image: gcr.io/repo-automation-bots/owlbot-java:latest
digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87
digest: sha256:b5ce87328633e27aa3e65d42e84cc722519859349760cdad48c7b5051b519a7d
2 changes: 1 addition & 1 deletion .kokoro/build.sh
Expand Up @@ -71,7 +71,7 @@ integration)
;;
graalvm)
# Run Unit and Integration Tests with Native Image
mvn -ntp -Pnative -Penable-integration-tests test
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test
RETURN_CODE=$?
;;
samples)
Expand Down
Expand Up @@ -44,7 +44,9 @@ public class HttpRequestTracingTest {
public void setupTestTracer() {
Tracing.getExportComponent().getSpanExporter().registerHandler("test", testHandler);
TraceParams params =
Tracing.getTraceConfig().getActiveTraceParams().toBuilder()
Tracing.getTraceConfig()
.getActiveTraceParams()
.toBuilder()
.setSampler(Samplers.alwaysSample())
.build();
Tracing.getTraceConfig().updateActiveTraceParams(params);
Expand Down

0 comments on commit be91177

Please sign in to comment.