From 45ca97808e982ca32e885b1c8477f900e6b201d0 Mon Sep 17 00:00:00 2001 From: Jan Kadlec <jan.kadlec@nic.cz> Date: Fri, 12 Dec 2014 22:30:54 +0100 Subject: [PATCH] backport: tests-extra: ixfr/stress: smaller zone, less updates - valgrind slowed the previous version too much --- tests-extra/tests/ixfr/stress/test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests-extra/tests/ixfr/stress/test.py b/tests-extra/tests/ixfr/stress/test.py index a56e70686..831721ef4 100644 --- a/tests-extra/tests/ixfr/stress/test.py +++ b/tests-extra/tests/ixfr/stress/test.py @@ -7,8 +7,8 @@ import random, socket, os from dnstest.utils import * from dnstest.test import Test -UPDATE_COUNT = 512 -UPDATE_SIZE = 64 +UPDATE_COUNT = 40 +UPDATE_SIZE = 450 chars="qwertyuiopasdfghjklzxcvbnm123456789" @@ -30,11 +30,11 @@ random.seed() t = Test() -zone = t.zone_rnd(1, dnssec=False) +zone = t.zone_rnd(1, dnssec=False, records=4) master = t.server("knot") # set journal limit for the master -master.ixfr_fslimit = "1000k" +master.ixfr_fslimit = "800k" slaves = [t.server("knot") for _ in range(2)] # set journal limit for one of the slaves @@ -64,8 +64,8 @@ for s in slaves + [master]: # check journal sizes st = os.stat(master.dir + "/" + zone[0].name.lower() + "diff.db") -if st.st_size > 1300 * 1024: - detail_log("Journal too big, should be max 1000k, is: " + str(st.st_size // 1024) + "k") +if st.st_size > 1050 * 1024: + detail_log("Journal too big, should be max 800k, is: " + str(st.st_size // 1024) + "k") set_err("JOURNAL SIZE OVERFLOW") st = os.stat(slaves[0].dir + "/" + zone[0].name.lower() + "diff.db") -- GitLab