Skip to content
Snippets Groups Projects
Commit 45ca9780 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

backport: tests-extra: ixfr/stress: smaller zone, less updates

 - valgrind slowed the previous version too much
parent 7c85e884
Branches
Tags
No related merge requests found
......@@ -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")
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment