Skip to content

Commit 7fbdad7

Browse files
committed
Fix up test to only test for not containing a key, not allowing nil values through
1 parent 6513e14 commit 7fbdad7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/apps/service/apps/de/jobs/common_test.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
requirements {:min_cpu_cores 2}
6565
result (#'common/reconcile-container-requirements container requirements)]
6666
;; When neither container nor requirements specify GPUs, they shouldn't appear in result
67-
(is (or (not (contains? result :min_gpus)) (nil? (:min_gpus result)))
68-
"Should not include min_gpus or should be nil when not specified")
69-
(is (or (not (contains? result :max_gpus)) (nil? (:max_gpus result)))
70-
"Should not include max_gpus or should be nil when not specified"))))
67+
(is (not (contains? result :min_gpus))
68+
"Should not include min_gpus when not specified")
69+
(is (not (contains? result :max_gpus))
70+
"Should not include max_gpus when not specified"))))

0 commit comments

Comments
 (0)