From e05131c82c7403e2ea55a7662326f703832f45fb Mon Sep 17 00:00:00 2001 From: Aleksandr Shevchuk Date: Wed, 9 Oct 2024 10:27:56 +0300 Subject: [PATCH] one more timeout --- .github/workflows/docker-jepsen.yml | 4 ++++ tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-jepsen.yml b/.github/workflows/docker-jepsen.yml index 1985556b..3a945b6a 100644 --- a/.github/workflows/docker-jepsen.yml +++ b/.github/workflows/docker-jepsen.yml @@ -3,6 +3,10 @@ name: Jepsen tests on: schedule: - cron: '0 0 * * *' + push: + branches: [ master ] + pull_request: + branches: [ master ] env: GO_VERSION: 1.22.4 diff --git a/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj b/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj index e6470af9..06245adb 100644 --- a/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj +++ b/tests/images/jepsen_main/jepsen/src/jepsen/mysync.clj @@ -93,7 +93,7 @@ (try (with-conn [c conn] (case (:f op) - :read (timeout 60000 (assoc op :type :info, :error "read-timeout") + :read (timeout 120000 (assoc op :type :info, :error "read-timeout") (cond (= (count (j/query c ["show slave status for channel ''"])) 0) (assoc op :type :ok, :value (->> (j/query c ["select value from test1.test_set"] @@ -276,7 +276,7 @@ (gen/nemesis (fn [] (map gen/once [{:type :info, :f :stop} - {:type :sleep, :value 120}]))) + {:type :sleep, :value 240}]))) (gen/time-limit 600))) :checker mysync-set :remote control/ssh})