From 1c8e73a8f61aa3934d5ed4c5ecdfb7c76ddb85bd Mon Sep 17 00:00:00 2001 From: fang Date: Tue, 10 Nov 2020 23:12:14 +0100 Subject: [PATCH] eyre: update tests to match fact-only clogs Watch-acks no longer add to the clog counter, so we need to trigger an additional fact to reach the test case we care about. --- pkg/arvo/tests/sys/vane/eyre.hoon | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/tests/sys/vane/eyre.hoon b/pkg/arvo/tests/sys/vane/eyre.hoon index 0efc360c4f..a3a6fd0d6c 100644 --- a/pkg/arvo/tests/sys/vane/eyre.hoon +++ b/pkg/arvo/tests/sys/vane/eyre.hoon @@ -1853,7 +1853,7 @@ == :: user gets sent multiple subscription results :: - =/ max=@ud (dec clog-threshold:eyre-gate) + =/ max=@ud clog-threshold:eyre-gate =/ cur=@ud 0 |- =* loop-fact $ ?. =(cur max) @@ -1889,13 +1889,31 @@ == ^= moves :~ :* duct=~[/http-get-open] + %give + %response + %continue + :- ~ + %- as-octt:mimes:html + """ + id: {((d-co:co 1) +(clog-threshold:eyre-gate))} + data: \{"json":[1],"id":1,"response":"diff"} + + + """ + complete=%.n + == + :* duct=~[/http-put-request] %pass + /channel/subscription/'0123456789abcdef'/'1'/~nul/two + %g %deal [~nul ~nul] %two %leave ~ + == + :* duct=~[/http-get-open] %give %response %continue :- ~ %- as-octt:mimes:html """ - id: {((d-co:co 1) +(clog-threshold:eyre-gate))} + id: {((d-co:co 1) (add 2 clog-threshold:eyre-gate))} data: \{"id":1,"response":"quit"}