mirror of
https://github.com/urbit/shrub.git
synced 2024-12-21 01:41:37 +03:00
e5ac690fd3
Also fix bug in eth-watcher that didn't cancel outstanding threads when config changes. And set default rift for ourselves to 0.
24 lines
935 B
Plaintext
24 lines
935 B
Plaintext
:: This tests that syncs are correctly restarted after a breach
|
|
::
|
|
/- spider
|
|
/+ *ph-io
|
|
=, strand=strand:spider
|
|
^- thread:spider
|
|
|= vase
|
|
=/ m (strand ,vase)
|
|
;< az=tid:spider bind:m start-azimuth
|
|
;< ~ bind:m (spawn az ~bud)
|
|
;< ~ bind:m (spawn az ~marbud)
|
|
;< ~ bind:m (real-ship az ~bud)
|
|
;< ~ bind:m (real-ship az ~marbud)
|
|
;< file=@t bind:m (touch-file ~bud %base %foo)
|
|
;< ~ bind:m (check-file-touched ~marbud %home file)
|
|
;< ~ bind:m (breach-and-hear az ~bud ~marbud)
|
|
;< ~ bind:m (real-ship az ~bud)
|
|
;< ~ bind:m (dojo ~bud "|merge %base ~marbud %kids, =gem %this")
|
|
;< file=@t bind:m (touch-file ~bud %base %bar)
|
|
;< file=@t bind:m (touch-file ~bud %base %baz)
|
|
;< ~ bind:m (check-file-touched ~marbud %home file)
|
|
;< ~ bind:m end-azimuth
|
|
(pure:m *vase)
|