Skip to content

Commit c05efa3

Browse files
committed
Tests: relaxed proxy_cache_lock.t nolock tests to fix on Solaris.
Assumed that the order of responses being arrived in nolock case may be ignored. An important part of such case is that the only last response should be cached.
1 parent 0760b2d commit c05efa3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

proxy_cache_lock.t

+3-5
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,10 @@ for my $i (1 .. 3) {
113113
$sockets[$i] = http_get('/nolock', start => 1);
114114
}
115115

116-
like(http_end($sockets[1]), qr/request 1/, 'nolock - first');
116+
$rest = join '', map { http_end($sockets[$_]) } (1 .. 3);
117117

118-
$rest = http_end($sockets[2]);
119-
$rest .= http_end($sockets[3]);
120-
121-
like($rest, qr/request (2.*request 3|3.*request 2)/s, 'nolock - rest');
118+
like($rest, qr/request 1/, 'nolock - first');
119+
like($rest, qr/request 3/, 'nolock - last');
122120
like(http_get('/nolock'), qr/request 3/, 'nolock - last cached');
123121

124122
###############################################################################

0 commit comments

Comments
 (0)