diff --git a/tests/integration/jit/function/test_span_class_function.php b/tests/integration/jit/function/test_span_class_function.php index 5dbce791c..fe8e38d1c 100644 --- a/tests/integration/jit/function/test_span_class_function.php +++ b/tests/integration/jit/function/test_span_class_function.php @@ -244,6 +244,7 @@ newrelic_add_custom_tracer('Classname::functionName'); function main() { + time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped. echo 'Hello'; } main(); diff --git a/tests/integration/jit/tracing/test_span_class_function.php b/tests/integration/jit/tracing/test_span_class_function.php index 835d7649a..5a520f211 100644 --- a/tests/integration/jit/tracing/test_span_class_function.php +++ b/tests/integration/jit/tracing/test_span_class_function.php @@ -243,6 +243,7 @@ newrelic_add_custom_tracer('Classname::functionName'); function main() { + time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped. echo 'Hello'; } main(); diff --git a/tests/integration/lang/trampoline/test_trampoline_02.php b/tests/integration/lang/trampoline/test_trampoline_02.php index 65b331768..a7a00cada 100644 --- a/tests/integration/lang/trampoline/test_trampoline_02.php +++ b/tests/integration/lang/trampoline/test_trampoline_02.php @@ -77,6 +77,7 @@ $anon = new class() { function execute() { + time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped. new ReflectionClass('Wrapper'); } }; @@ -84,6 +85,7 @@ function execute() $anon2 = new class() { function execute() { + time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped. new ReflectionClass('Wrapper'); } }; diff --git a/tests/integration/opcache/disabled/test_span_class_function.php b/tests/integration/opcache/disabled/test_span_class_function.php index 4a693e689..d3438f6ec 100644 --- a/tests/integration/opcache/disabled/test_span_class_function.php +++ b/tests/integration/opcache/disabled/test_span_class_function.php @@ -245,6 +245,7 @@ newrelic_add_custom_tracer('Classname::functionName'); function main() { + time_nanosleep(0, 50000); // force non-zero duration for the segment not to be dropped. echo 'Hello'; } main();