shrub/pkg/arvo/ted/ph/breach-sudden.hoon

27 lines
925 B
Plaintext
Raw Normal View History

:: This tests whether we can handle the case where our immediate
:: sponsor dies without telling us about its breach, so we must hear
:: about it from somewhere else.
::
2019-10-02 06:25:19 +03:00
/- spider
2019-10-02 06:39:49 +03:00
/+ *ph-io
=, strand=strand:spider
^- thread:spider
2019-11-16 04:37:20 +03:00
|= vase
=/ m (strand ,vase)
2021-06-18 08:54:17 +03:00
;< ~ bind:m start-azimuth
;< ~ bind:m (spawn ~bud)
;< ~ bind:m (spawn ~marbud)
;< ~ bind:m (init-ship ~bud |)
;< ~ bind:m (init-ship ~marbud |)
;< file=@t bind:m (touch-file ~bud %kids %foo)
;< ~ bind:m (check-file-touched ~marbud %home file)
;< ~ bind:m (breach ~bud)
;< ~ bind:m (init-ship ~bud |)
;< ~ bind:m
(dojo ~bud "|merge %home ~marbud %kids, =gem %only-this")
2021-06-18 08:54:17 +03:00
;< file=@t bind:m (touch-file ~bud %kids %bar)
;< file=@t bind:m (touch-file ~bud %kids %baz)
;< ~ bind:m (check-file-touched ~marbud %home file)
;< ~ bind:m end
(pure:m *vase)