mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
eyre: produce moves in correct order
Because storing in reverse order means producing in reverse reverse order. The tests didn't catch this because they, too, were infected with the "reverse moves" meme.
This commit is contained in:
parent
235bfbbd2f
commit
b92cfdb242
@ -1585,7 +1585,7 @@
|
||||
==
|
||||
=? next-id kicking +(next-id)
|
||||
::
|
||||
:- moves
|
||||
:- (flop moves)
|
||||
%_ state
|
||||
session.channel-state
|
||||
%+ ~(put by session.channel-state.state) channel-id
|
||||
|
@ -1849,7 +1849,7 @@
|
||||
~
|
||||
==
|
||||
^= expected-moves
|
||||
~ ::NOTE tested elsewher
|
||||
~ ::NOTE tested elsewhere
|
||||
==
|
||||
:: user gets sent multiple subscription results
|
||||
::
|
||||
@ -1889,24 +1889,6 @@
|
||||
==
|
||||
^= moves
|
||||
:~ :* duct=~[/http-get-open]
|
||||
%give
|
||||
%response
|
||||
%continue
|
||||
:- ~
|
||||
%- as-octt:mimes:html
|
||||
"""
|
||||
id: {((d-co:co 1) +(clog-threshold:eyre-gate))}
|
||||
data: \{"id":1,"response":"quit"}
|
||||
|
||||
|
||||
"""
|
||||
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
|
||||
@ -1920,6 +1902,24 @@
|
||||
"""
|
||||
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))}
|
||||
data: \{"id":1,"response":"quit"}
|
||||
|
||||
|
||||
"""
|
||||
complete=%.n
|
||||
==
|
||||
==
|
||||
==
|
||||
results
|
||||
|
Loading…
Reference in New Issue
Block a user