From 32e25de121c45a75b4c7241a4645913c7a009fc8 Mon Sep 17 00:00:00 2001 From: Dean Roehrich Date: Mon, 1 Apr 2024 16:31:35 -0500 Subject: [PATCH] debug Signed-off-by: Dean Roehrich --- .../integration/src/features/test_environment.feature | 1 + testsuite/integration/src/tests/conftest.py | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/testsuite/integration/src/features/test_environment.feature b/testsuite/integration/src/features/test_environment.feature index d30a7f2..d91c204 100644 --- a/testsuite/integration/src/features/test_environment.feature +++ b/testsuite/integration/src/features/test_environment.feature @@ -35,6 +35,7 @@ Feature: Integration test environment Then the UIDs match and the cluster is the same Scenario: Slurm is usable + Given a two-minute startup delay Given a job script: #!/bin/bash /bin/hostname diff --git a/testsuite/integration/src/tests/conftest.py b/testsuite/integration/src/tests/conftest.py index 409d762..61da577 100644 --- a/testsuite/integration/src/tests/conftest.py +++ b/testsuite/integration/src/tests/conftest.py @@ -19,7 +19,7 @@ import os import secrets -import warnings +import time import pytest from kubernetes import client, config @@ -60,6 +60,11 @@ def _(script): os.remove(path) +@given('a two-minute startup delay') +def _(slurmctld): + """a two-minute startup delay""" + time.sleep(120) + @when('the job is run', target_fixture="jobId") def _(slurmctld, script_path): """the job is run."""