diff --git a/src/tls.c b/src/tls.c index dc094412..27d906dd 100644 --- a/src/tls.c +++ b/src/tls.c @@ -302,14 +302,10 @@ static int test_tls_base(enum tls_keytype keytype, bool add_ca, int exp_verr, verr = tls_peer_verify(tt.sc_cli); TEST_EQUALS(exp_verr, verr); -#if 0 - /* @TODO: fix test */ if (test_sess_reuse) { - TEST_EQUALS(MIN(i, 1), - MIN(1, (unsigned long int) - tls_session_reused(tt.sc_cli))); + TEST_EQUALS(i == 0 ? false : true, + tls_session_reused(tt.sc_cli)); } -#endif tt.sc_cli = mem_deref(tt.sc_cli); tt.sc_srv = mem_deref(tt.sc_srv);