Skip to content

Commit ad5587b

Browse files
committed
add test code
1 parent 5cc068e commit ad5587b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tonic-tls-tests/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ mod tests {
289289
let dnsname = "localhost".to_string();
290290
let ep = tonic::transport::Endpoint::from_shared(url)
291291
.unwrap()
292-
.tcp_keepalive(Some(Duration::from_secs(5)));
292+
.tcp_keepalive(Some(Duration::from_secs(5)))
293+
.tcp_keepalive_interval(Some(Duration::from_secs(3)))
294+
.tcp_keepalive_retries(Some(3));
293295
ep.connect_with_connector(tonic_tls::native::TlsConnector::new(&ep, tc, dnsname))
294296
.await
295297
.map_err(tonic_tls::Error::from)

0 commit comments

Comments
 (0)