Tyler Goodlet
85a0700716
Add back line that breaks with async gens
2019-02-15 22:10:55 -05:00
Tyler Goodlet
51f082fff7
Use mem chan in streaming tests
2019-02-15 17:10:57 -05:00
Tyler Goodlet
41c202db68
Add a multi-task subscriber test
...
In combination with `.aclose()`-ing the async gen instance returned from
`Portal.run()` this demonstrates the python bug:
https://bugs.python.org/issue32526
I've commented out the line that triggers the bug for now since this
case provides motivation for adding our own `trio.abc.ReceiveMemoryChannel`
implementation to be used instead of async gens directly (returned from
`Portal.run()`) since the latter is **not** task safe.
2019-02-15 17:04:41 -05:00
Tyler Goodlet
b0b35284f4
Add call/decorate time type checking tests
2019-01-25 00:13:13 -05:00
Tyler Goodlet
2b1e8773bb
Verify subs topics at each step
2019-01-23 22:35:04 -05:00
Tyler Goodlet
36ee6695fb
Add initial pubsub test
2019-01-21 12:31:03 -05:00
Tyler Goodlet
d2f0537850
Add tests for import-time failures
2019-01-12 17:56:39 -05:00
Tyler Goodlet
fe4a39550d
Add remote module error handling tests
2019-01-01 16:12:34 -05:00
Tyler Goodlet
47b531a43a
Add test to verify remote task cancellation
2018-12-10 23:13:58 -05:00
Tyler Goodlet
512a2f25a2
Expose `tractor_test` in the same way as `trio`
2018-11-26 11:26:04 -05:00
Tyler Goodlet
0879150399
Move `tractor_test` to new module
2018-11-26 11:20:53 -05:00
Tyler Goodlet
23c7519fec
Jeeze 3.7.1 got even faster?
2018-11-22 14:25:31 -05:00
Tyler Goodlet
a482681f9c
Leverage `pytest.raises()` better; fix a bunch of docs
2018-11-22 11:43:04 -05:00
Tyler Goodlet
3e74cc6f11
Verify nested boxed errors
2018-11-19 16:53:21 -05:00
Tyler Goodlet
7a2b7d9d14
Delay tweak for py3.7.1
2018-11-19 14:17:01 -05:00
Tyler Goodlet
9102c48810
Add multierror cancellation tests
2018-11-19 14:16:42 -05:00
Tyler Goodlet
aa32f42715
Avoid hanging multi-prog test when SIGINT fails
2018-11-09 01:36:45 -05:00
Tyler Goodlet
034146f2b1
Verify arbiter self registration
2018-09-21 00:32:23 -04:00
Tyler Goodlet
7dd91d0684
Wait longer for arbiter-daemon to spawn on py3.6
2018-09-17 09:17:11 -04:00
Tyler Goodlet
827a6c6014
Make `rpc_modules` a positional arg to `tractor.run_daemon()`
2018-09-10 22:31:23 -04:00
Tyler Goodlet
037c4c3797
Comment tweak
2018-09-10 15:28:19 -04:00
Tyler Goodlet
d12136d44d
Add some mult-program tests
...
Run the arbiter-actor in a separate program and do some basic tests to
make sure everything works - particularly, registration and
cancellation.
2018-09-08 09:44:29 -04:00
Tyler Goodlet
0ca668453c
Running without a main func is a type error
2018-09-05 18:13:23 -04:00
Tyler Goodlet
a998a5e415
Forgot to remove spawn tests from test_local.py
2018-09-04 22:17:02 -04:00
Tyler Goodlet
c2457f7cce
Move basic spawning tests to separate module
2018-09-02 22:07:32 -04:00
Tyler Goodlet
18e101d38e
Move streaming tests into separate module
2018-09-02 21:58:42 -04:00
Tyler Goodlet
51076ebb5c
Break cancellation tests into new module
2018-09-02 11:51:58 -04:00
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
ea60a3dff9
Test the `wait_for_actor()` api
2018-08-13 00:06:22 -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
64cbb922dc
Reorg everything into private modules
2018-07-14 16:09:05 -04:00
Tyler Goodlet
a26d6f831f
Add loglevel setting to test suite
2018-07-11 22:24:19 -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