diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1441105b41..54a9a2d4a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -383,6 +383,7 @@ stages: <<: *default_triggering_rules stage: unit before_script: + - if [ -n "$TCP_CONNECTIONTIMEOUT" ]; then sudo sysctl 'net.inet.tcp.keepinittime=1'; fi - *setup_softhsm script: - make -j${TEST_PARALLEL_JOBS:-1} -k unit V=1 @@ -1216,6 +1217,8 @@ unit:clang:openbsd:amd64: <<: *unit_test_job variables: USER: gitlab-runner + # There's no socket option on OpenBSD, so we need to set this globally + TCP_CONNECTIONTIMEOUT: 1 needs: - job: clang:openbsd:amd64 artifacts: true