Skip to content

Commit

Permalink
Fixed duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
qvad committed Jan 9, 2024
1 parent 252fb32 commit 9efd6a7
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions yugabyte/src/yugabyte/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -315,16 +315,8 @@
[opts]
(let [packed-columns-enabled (> (rand) 0.5)
colocated (and (not (utils/is-test-geo-partitioned? opts)) (> (rand) 0.5))]
(assoc opts :yb-packed-columns-enabled packed-columns-enabled :yb-colocated colocated)))

(defn test-3
"Final phase where we define global cluster configuration parameters"
[opts]
(let [packed-columns-enabled (> (rand) 0.5)
colocated (and (not (utils/is-test-geo-partitioned? opts)) (> (rand) 0.5))]
(if (:additional-features test)
(assoc opts :yb-packed-columns-enabled packed-columns-enabled
:yb-colocated colocated))))
(assoc opts :yb-packed-columns-enabled packed-columns-enabled
:yb-colocated colocated)))

(defn yb-test
"Constructs a yugabyte test from CLI options."
Expand Down

0 comments on commit 9efd6a7

Please sign in to comment.