diff --git a/tests/test-https.t b/tests/test-https.t
index 323e3626929a79e8b7866bfef1f9c072cb4fc7cf_dGVzdHMvdGVzdC1odHRwcy50..e03bc88776d3a0809feccb7b4c6b8f1ccec695cd_dGVzdHMvdGVzdC1odHRwcy50 100644
--- a/tests/test-https.t
+++ b/tests/test-https.t
@@ -335,9 +335,7 @@
 
 Ports used by next test. Kill servers.
 
-  $ killdaemons.py hg0.pid
-  $ killdaemons.py hg1.pid
-  $ killdaemons.py hg2.pid
+  $ killdaemons.py $DAEMON_PIDS
 
 #if tls1.2
 Start servers running supported TLS versions
@@ -465,12 +463,7 @@
   abort: error: .*(unsupported protocol|wrong ssl version|alert protocol version).* (re)
   [100]
 
-  $ killdaemons.py hg0.pid
-  $ killdaemons.py hg1.pid
-  $ killdaemons.py hg2.pid
-#if tls1.3
-  $ killdaemons.py hg3.pid
-#endif
+  $ killdaemons.py $DAEMON_PIDS
 #endif
 
 Prepare for connecting through proxy