diff --git a/t/02-init.t b/t/02-init.t
index b501882b6933546a06c02dd2ba167c1e365b5986..e253d9177b2431b64d79eb5e35207d530bd6f125 100644
--- a/t/02-init.t
+++ b/t/02-init.t
@@ -14,6 +14,7 @@ my $config_dir = path($testapp->workpath())->child('.config');
 $config_dir->mkpath();
 my $config_file = $config_dir->child('ta-tool.rc');
 my $testhost = Test::TA::testhost();
+my $testport = Test::TA::testport();
 my $cache_dir = path($testapp->workpath())->child('.cache');
 $cache_dir->mkpath();
 my $cache_file = $cache_dir->child('ta-tool.cache');
@@ -59,8 +60,9 @@ _EOF_
     is($config, <<_EXP_, "ta-tool init, config file as expected");
 ---
 elasticsearch_host: $testhost
-elasticsearch_port: 9200
-http_only: ~
+elasticsearch_port: $testport
+http_only: 1
+logdir: /tmp
 password: 839852bed005a7f1237578a6ac1197c142f7d0dd58bb248446dc7849d4bf770902e7f980ad83d39008ad638bc41e2345
 permanent_volume:
   - $permanent_volumes[0]