File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ TEST_CASE("memcached_noblock") {
10
10
REQUIRE_SUCCESS (memcached_behavior_set (memc, MEMCACHED_BEHAVIOR_TCP_NODELAY, 1 ));
11
11
REQUIRE_SUCCESS (memcached_behavior_set (memc, MEMCACHED_BEHAVIOR_POLL_TIMEOUT, timeout));
12
12
13
- auto num = timeout ? 10'000 : 1'000'000 ;
13
+ auto num = 10000 ;
14
14
auto hit = 0u ;
15
15
auto rnd = random_ascii_string (512 );
16
16
for (auto i = 0 ; i < num; ++i) {
@@ -24,16 +24,15 @@ TEST_CASE("memcached_noblock") {
24
24
case MEMCACHED_TIMEOUT:
25
25
case MEMCACHED_WRITE_FAILURE:
26
26
++hit;
27
- REQUIRE (true );
28
27
break ;
29
28
default :
30
29
REQUIRE (false );
31
30
}
32
31
}
33
- INFO (" failures triggered: " << hit);
32
+ INFO (" timeout= " << timeout << " failures triggered: " << hit);
34
33
if (timeout) {
35
- CHECK_FALSE (hit);
34
+ REQUIRE_FALSE (hit);
36
35
} else {
37
- CHECK (hit > 0 );
36
+ REQUIRE (hit > 0 );
38
37
}
39
38
}
You can’t perform that action at this time.
0 commit comments