X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fimapd-tls.t;h=ab90ddec4738fb54fae016a6bd2518ac7956fe32;hb=860169adcd29341142b7c4a369c09b4ac492bd1e;hp=df4ef85ca77d089cfcf5724245d34c33b4ee3869;hpb=07caa8528db2ac22d81a0763e1cefd59acd827f1;p=public-inbox.git
diff --git a/t/imapd-tls.t b/t/imapd-tls.t
index df4ef85c..ab90ddec 100644
--- a/t/imapd-tls.t
+++ b/t/imapd-tls.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2020 all contributors
+# Copyright (C) 2020-2021 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
@@ -70,8 +70,8 @@ EOF
}
}
-my $imaps_addr = $imaps->sockhost . ':' . $imaps->sockport;
-my $starttls_addr = $starttls->sockhost . ':' . $starttls->sockport;
+my $imaps_addr = tcp_host_port($imaps);
+my $starttls_addr = tcp_host_port($starttls);
my $env = { PI_CONFIG => $pi_config };
my $td;