Skip to content

Commit 0a55b17

Browse files
committed
keep the logic in case params are empty
1 parent f72088b commit 0a55b17

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/practitest_firecracker/practitest.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
(contains? testname-test2 (str name ":" vals))))
202202
instances)
203203
instances)
204-
log (when display-action-logs (do (log/infof "filter-instances: ") (pprint/pprint filter-instances)))
205204

206205
ts-id-instance-num (into {} (map (fn [testset-id-name]
207206
{(first (first testset-id-name))
@@ -271,7 +270,10 @@
271270
test-by-id (group-by (fn [test] (read-string (:id (last test)))) all-tests)
272271
new-intstances (flatten (for [instances-part (partition-all 100 (shuffle make-instances))]
273272
(api/ll-create-instances client [project-id display-action-logs] instances-part)))
274-
all-intstances (into [] (concat new-intstances filter-instances))
273+
all-intstances (into [] (concat new-intstances (if
274+
(not-empty pt-instance-params)
275+
filter-instances
276+
instances)))
275277

276278
instance-to-ts-test (group-by (fn [inst] [(:set-id (:attributes inst)) (:test-id (:attributes inst))]) all-intstances)]
277279
(when display-run-time (print-run-time "Time - after create instances: %d:%d:%d" start-time))

0 commit comments

Comments
 (0)