Tyler Goodlet
3dcf16c43d
Min cancel delay >= 0
2018-08-31 20:38:34 -04:00
Tyler Goodlet
a64c2a70bd
Base cancel delays on speed of a non-cancelled run
2018-08-19 16:08:02 -04:00
Tyler Goodlet
8c110c79fb
A teensy more lax on the speed test
2018-08-17 16:55:00 -04:00
Tyler Goodlet
99e2cf9a13
Draft v2 after new `run_in_actor()` API
...
Revamp the docs after some feedback from @vodik.
See #24 #25 for additional details.
2018-08-07 18:05:35 -04:00
Tyler Goodlet
a7315f91ee
Document per-func actors for clarity
2018-08-07 17:59:27 -04:00
Tyler Goodlet
e4ef973be9
Add discovery testing
...
Add a new test to verify actors register with their `.uid` tuple as
per #7 . Break off relevant "discovery" tests into a new test module.
2018-08-07 14:30:25 -04:00
Tyler Goodlet
db08dbad3b
Streaming is too fast, cancel sooner
2018-08-02 16:33:42 -04:00
Tyler Goodlet
dadea87451
Update test to new api
2018-08-02 15:27:09 -04:00
Tyler Goodlet
590267ded2
Add a simpler cancel test
2018-07-11 22:24:19 -04:00
Tyler Goodlet
d9aa6119e1
Set cancelled state in cancel method
2018-07-11 22:24:14 -04:00
Tyler Goodlet
bb9309bdf5
Add a cancellation strategy test
2018-07-11 22:20:13 -04:00
Tyler Goodlet
bb293905b9
Verify expected non-result under cancellation
2018-07-11 22:20:13 -04:00
Tyler Goodlet
1854471992
Add tests which verify the readme is correct
...
- steal from `trio` and add a `tractor_test` decorator
- use a random arbiter port to avoid conflicts with locally running
systems
- add all the (obviously) hilarious readme tests
- add a complex cancellation test which works with
`trio.move_on_after()`
2018-07-11 22:20:13 -04:00
Tyler Goodlet
d94be22ef2
Add a "show me the code" test from the readme
2018-07-11 22:20:13 -04:00
Tyler Goodlet
10417303aa
Get tests working again
...
Remove all the `piker` stuff and add some further checks including:
- main task result is returned correctly
- remote errors are raised locally
- remote async generator yields values locally
2018-07-11 22:20:13 -04:00
Tyler Goodlet
a2980d88c5
Fix import, but tests don't all work yet
2018-07-05 19:49:21 -04:00
Tyler Goodlet
f6080522f9
`tractor.run()` is required for testing now
2018-07-05 16:21:55 -04:00
Tyler Goodlet
82f22b76e5
Arbiter now supports non-empty statespace
2018-07-05 16:21:55 -04:00
Tyler Goodlet
97865a192a
Add an actor spawning test
...
Test that the actor nursery API and ``tractor.run`` entrypoint work when
the sub-actor's main task is all that is run (i.e. no rpc requests).
2018-07-05 16:21:55 -04:00
Tyler Goodlet
2e9cbec93c
Add a basic `tractor.run()` test
2018-07-05 16:21:55 -04:00
Tyler Goodlet
03c57ceece
Add an initial `tractor` price streaming test
2018-07-05 16:21:55 -04:00