diff --git a/ee/clickhouse/views/test/test_clickhouse_experiment_secondary_results.py b/ee/clickhouse/views/test/test_clickhouse_experiment_secondary_results.py index 7f45d868fc4a0..f4acf84445055 100644 --- a/ee/clickhouse/views/test/test_clickhouse_experiment_secondary_results.py +++ b/ee/clickhouse/views/test/test_clickhouse_experiment_secondary_results.py @@ -1156,7 +1156,7 @@ def test_metrics_without_full_flag_information_are_valid(self): result_data = response_data["result"] self.assertEqual(len(result_data["result"].items()), 2) - self.assertAlmostEqual(result_data["result"]["control"], 0) + self.assertAlmostEqual(result_data["result"]["control"], 1) self.assertEqual(result_data["result"]["test"], 0) assert set(response_data["result"].keys()) == { @@ -1307,4 +1307,4 @@ def test_no_metric_validation_errors_for_secondary_metrics(self): assert "control" not in result_data["result"] - self.assertEqual(result_data["result"]["test"], 0) + self.assertEqual(result_data["result"]["test"], 0.333) diff --git a/ee/clickhouse/views/test/test_clickhouse_experiments.py b/ee/clickhouse/views/test/test_clickhouse_experiments.py index fccc4bc0db598..50bd46c5ac43e 100644 --- a/ee/clickhouse/views/test/test_clickhouse_experiments.py +++ b/ee/clickhouse/views/test/test_clickhouse_experiments.py @@ -2712,7 +2712,7 @@ def test_experiment_flow_with_event_results_for_three_test_variants(self): result = sorted(response_data["insight"], key=lambda x: x[0]["breakdown_value"][0]) self.assertEqual(result[0][0]["name"], "$pageview") - self.assertEqual(result[0][0]["count"], 1) + self.assertEqual(result[0][0]["count"], 2) self.assertEqual("control", result[0][0]["breakdown_value"][0]) self.assertEqual(result[0][1]["name"], "$pageleave")