From 75dc121459b9bd3271dcf81985086439760dba6a Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Wed, 11 Mar 2026 16:44:51 -0700 Subject: [PATCH] Tests: fixed sticky learn test with pre open-source implementation. --- upstream_sticky_learn.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/upstream_sticky_learn.t b/upstream_sticky_learn.t index 7798a732..9b6263b9 100644 --- a/upstream_sticky_learn.t +++ b/upstream_sticky_learn.t @@ -280,6 +280,9 @@ for (1 .. 5) { many('/server_mismatch_timeout/swap', 4, cookie => 'sid=value2'); } +TODO: { +local $TODO = 'not yet' unless $t->has_version('1.29.6'); + # after timeout, requests are not initially sticky until balanced to 2nd peer isnt(many('/server', 4, cookie => 'sid=value2'), "$p2: 4", @@ -304,7 +307,7 @@ like(many('/server_mismatch/swap', 4, cookie => 'sid=value2'), qr/($p3|$p4): 4/, many('/server_mismatch_timeout/long', 1, cookie => 'sid=value2'); unlike(many('/server_mismatch_timeout/swap', 4, cookie => 'sid=value2'), qr/($p1|$p2): /, 'sticky timeout sticky mismatch timeout'); - +} # case sensitive tests