Skip to content

Commit 57788aa

Browse files
committed
test: make memcache TTL test for 180s conditional
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent ad2075b commit 57788aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test_cfg.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,13 @@ START_TEST(test_cfg_cache_connections_ttl) {
108108
rv = oidc_cmd_cache_memcache_ttl_set(cmd, ptr, arg);
109109
ck_assert_msg(rv != NULL, "set to 4295 did not fail");
110110

111+
#if AP_MODULE_MAGIC_AT_LEAST(20080920, 2)
112+
arg = "180s";
113+
#else
111114
arg = "180";
115+
#endif
112116
rv = oidc_cmd_cache_memcache_ttl_set(cmd, ptr, arg);
113-
ck_assert_msg(rv == NULL, "set to 180s failed");
117+
ck_assert_msg(rv == NULL, "set to %s failed", arg);
114118

115119
ttl = oidc_cfg_cache_memcache_ttl_get(cfg);
116120
ck_assert_msg(ttl == apr_time_from_sec(180), "get 180 failed: %d", (int)ttl);

0 commit comments

Comments
 (0)