From 954211734fa4447e875159da492906d3eab3427d Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Sun, 19 Nov 2023 16:24:53 -0500 Subject: [PATCH] Change RPC port to non-default during tests Running the tests on a host that already has an instance running with the default ports will cause an issue with binding to the RPC port. By using a non-default port we'll ensure that the test run won't fail before starting. --- t/test.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/test.pl b/t/test.pl index 6934d24..c2b2933 100755 --- a/t/test.pl +++ b/t/test.pl @@ -24,6 +24,7 @@ BEGIN } const my $PORT => 17755; +const my $RPCPORT => 17756; const my $TMPDIR_HANDLE => File::Temp->newdir(CLEANUP => 1); const my $TMPDIR => $TMPDIR_HANDLE->dirname(); @@ -169,6 +170,7 @@ sub test_argument_checking { sub get_test_conf { return <<"END"; reporting-disabled = true +bind-address = ":$RPCPORT" [logging] level = "warn"