]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
tests/config/basic.lua: don't test broken resize function
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 4 Mar 2019 12:33:46 +0000 (13:33 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:44:47 +0000 (10:44 +0100)
tests/config/basic.test.lua

index 520f63e0d48e8c2c98052d1114c832a32dc7b0bb..4535ee19ffa0df0cb6a974b3c4067684e2450020 100644 (file)
@@ -131,13 +131,11 @@ local function test_packet_functions()
        same(parsed:tostring(), pkt:tostring(), 'parsed packet is equal to source packet')
 
        -- Test adding RR sets directly
-       local copy = kres.packet(23)
+       local copy = kres.packet(512)
        copy:question(todname('hello'), kres.class.IN, kres.type.A)
        copy:begin(kres.section.ANSWER)
        local rr = kres.rrset(pkt:qname(), kres.type.A, kres.class.IN, 66)
        rr:add_rdata('\4\3\2\1', 4)
-       ok(not copy:put_rr(rr), 'adding RR sets checks for available space')
-       ok(copy:resize(512), 'resizing packet works')
        ok(copy:put_rr(rr), 'adding RR sets directly works')
        ok(copy:recycle(), 'recycling packet works')