@@ -37,6 +37,10 @@ def test_create_job_with_integer_quota_parameters(self, test_job_name):
37
37
]
38
38
39
39
result = execute_command (create_cmd )
40
+
41
+ # Wait a moment for the job to be created
42
+ time .sleep (5 )
43
+
40
44
assert result .returncode == 0
41
45
assert "Using version: 1.1" in result .stdout
42
46
logger .info (f"Successfully created job with required gpu quota parameters: { test_job_name } " )
@@ -84,6 +88,10 @@ def test_create_job_with_float_quota_parameters(self, test_job_name):
84
88
]
85
89
86
90
result = execute_command (create_cmd )
91
+
92
+ # Wait a moment for the job to be created
93
+ time .sleep (5 )
94
+
87
95
assert result .returncode == 0
88
96
assert "Using version: 1.1" in result .stdout
89
97
logger .info (f"Successfully created job with required gpu quota parameters: { test_job_name } " )
@@ -126,6 +134,10 @@ def test_create_job_with_only_accelerators_parameter(self, test_job_name):
126
134
]
127
135
128
136
result = execute_command (create_cmd )
137
+
138
+ # Wait a moment for the job to be created
139
+ time .sleep (5 )
140
+
129
141
assert result .returncode == 0
130
142
assert "Using version: 1.1" in result .stdout
131
143
logger .info (f"Successfully created job with required gpu quota parameters: { test_job_name } " )
@@ -179,6 +191,10 @@ def test_create_job_with_accelerators_memory_parameters(self, test_job_name):
179
191
"--namespace" , NAMESPACE
180
192
]
181
193
result = execute_command (describe_cmd )
194
+
195
+ # Wait a moment for the job to be created
196
+ time .sleep (5 )
197
+
182
198
assert result .returncode == 0
183
199
assert " Limits: {'memory': '2899102924800m', 'nvidia.com/gpu': '1'}" in result .stdout
184
200
assert " Requests: {'cpu': '32', 'memory': '2040109465600m', 'nvidia.com/gpu': '1'}" in result .stdout
0 commit comments