diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 4bef921ff..f947c024a 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -717,6 +717,7 @@ if {[llength $filtered_tests] < [llength $::all_tests]} { } proc attach_to_replication_stream {} { + r config set repl-ping-replica-period 3600 if {$::tls} { set s [::tls::socket [srv 0 "host"] [srv 0 "port"]] } else { @@ -774,6 +775,7 @@ proc assert_replication_stream {s patterns} { proc close_replication_stream {s} { close $s + r config set repl-ping-replica-period 10 } # With the parallel test running multiple Redis instances at the same time diff --git a/tests/unit/oom-score-adj.tcl b/tests/unit/oom-score-adj.tcl index cf671fe6a..efa61b759 100644 --- a/tests/unit/oom-score-adj.tcl +++ b/tests/unit/oom-score-adj.tcl @@ -39,7 +39,7 @@ if {$system_name eq {linux}} { r bgsave set child_pid [get_child_pid 0] - assert {[get_oom_score_adj $child_pid] == [expr $base + 30]} + assert_equal [get_oom_score_adj $child_pid] [expr $base + 30] } # Failed oom-score-adj tests can only run unprivileged