From 277187006bc7853240473207522e52f42417ad79 Mon Sep 17 00:00:00 2001 From: jean-philippe bempel Date: Mon, 13 Nov 2023 10:25:31 +0100 Subject: [PATCH] Fix span line probe smoke test --- .../java/datadog/smoketest/SpanProbesIntegrationTest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/SpanProbesIntegrationTest.java b/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/SpanProbesIntegrationTest.java index 16d8874dc74..8a63c6c1ea3 100644 --- a/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/SpanProbesIntegrationTest.java +++ b/dd-smoke-tests/debugger-integration-tests/src/test/java/datadog/smoketest/SpanProbesIntegrationTest.java @@ -58,7 +58,12 @@ void testLineRangeSpan() throws Exception { void testSingleLineSpan() throws Exception { final String METHOD_NAME = "fullMethod"; final String EXPECTED_UPLOADS = "2"; // 2 probe statuses: RECEIVED + ERROR - SpanProbe spanProbe = SpanProbe.builder().probeId(PROBE_ID).where(MAIN_CLASS_NAME, 80).build(); + SpanProbe spanProbe = + SpanProbe.builder() + .probeId(PROBE_ID) + // on line: System.out.println("fullMethod"); + .where(MAIN_CLASS_NAME, 88) + .build(); setCurrentConfiguration(createSpanConfig(spanProbe)); targetProcess = createProcessBuilder(logFilePath, METHOD_NAME, EXPECTED_UPLOADS).start(); AtomicBoolean received = new AtomicBoolean(false);