summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests/diskqueue-fsync.sh2
-rw-r--r--tests/tcpflood.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/diskqueue-fsync.sh b/tests/diskqueue-fsync.sh
index 17b0ba4e..fe923c22 100755
--- a/tests/diskqueue-fsync.sh
+++ b/tests/diskqueue-fsync.sh
@@ -9,7 +9,7 @@ echo \[diskqueue-fsync.sh\]: testing queue disk-only mode, fsync case
source $srcdir/diag.sh init
source $srcdir/diag.sh startup diskqueue-fsync.conf
# 1000 messages should be enough - the disk fsync test is very slow!
-source $srcdir/diag.sh tcpflood -m1000
+source $srcdir/diag.sh injectmsg 0 1000
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
source $srcdir/diag.sh wait-shutdown
source $srcdir/diag.sh seq-check 0 999
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index e92d1308..f93a87a2 100644
--- a/tests/tcpflood.c
+++ b/tests/tcpflood.c
@@ -471,6 +471,8 @@ int main(int argc, char *argv[])
exit(1);
}
+ closeConnections();
+
printf("End of tcpflood Run\n");
exit(ret);