urbit/pkg/arvo/ted/ph/breach-hi-cousin.hoon

27 lines
833 B
Plaintext
Raw Normal View History

:: This is useful to test that we properly hear about breaches outside
:: our sponsorship tree. We usually hear about these via ship-to-ship
:: communication.
::
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 ~dev)
;< ~ bind:m (spawn ~marbud)
;< ~ bind:m (spawn ~mardev)
;< ~ bind:m (init-ship ~bud |)
;< ~ bind:m (init-ship ~dev |)
;< ~ bind:m (init-ship ~marbud |)
;< ~ bind:m (init-ship ~mardev |)
2019-10-02 06:39:49 +03:00
;< ~ bind:m (send-hi ~marbud ~mardev)
2021-06-18 08:54:17 +03:00
;< ~ bind:m (breach-and-hear ~mardev ~marbud)
2019-10-02 06:39:49 +03:00
;< ~ bind:m (send-hi-not-responding ~marbud ~mardev)
2021-06-18 08:54:17 +03:00
;< ~ bind:m (init-ship ~mardev |)
2019-10-02 06:39:49 +03:00
;< ~ bind:m (wait-for-output ~marbud "hi ~mardev successful")
2021-06-18 08:54:17 +03:00
;< ~ bind:m end
(pure:m *vase)