Skip to content

Commit b4daa1f

Browse files
authored
Skip the flaky unix socket test on CI environments (#2535)
* Skip test on CI environments
1 parent ab2dd7d commit b4daa1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/ext/background-sender/default_unix_domain_socket_agent.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
--TEST--
22
If an agent unix domain socket exists it will try to connect to it
33
--SKIPIF--
4+
<?php if (false !== getenv('CI') || false !== getenv('CIRCLECI')) die('skip: This test is flaky in CI environments.'); ?>
45
<?php include __DIR__ . '/../startup_logging_skipif.inc'; ?>
56
<?php include __DIR__ . '/../includes/skipif_no_dev_env.inc'; ?>
67
<?php @mkdir("/var/run/datadog"); if (!is_dir("/var/run/datadog")) { `sudo mkdir /var/run/datadog <&-; sudo chown $(id -u) /var/run/datadog`; } if (!is_file("/var/run/datadog/apm.socket") && !is_writable("/var/run/datadog")) die("skip: no permissions to create a /var/run/datadog/apm.socket"); ?>

0 commit comments

Comments
 (0)