From 9efd6a777913e7bafcb5e0d90a3b1b5e53643798 Mon Sep 17 00:00:00 2001 From: Dmitry Sherstobitov Date: Tue, 9 Jan 2024 15:12:48 +0400 Subject: [PATCH] Fixed duplicated code --- yugabyte/src/yugabyte/core.clj | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/yugabyte/src/yugabyte/core.clj b/yugabyte/src/yugabyte/core.clj index 921192563..8cdc5c6af 100644 --- a/yugabyte/src/yugabyte/core.clj +++ b/yugabyte/src/yugabyte/core.clj @@ -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."