Commit graph

12 commits

Author SHA1 Message Date
ppom
9608653917
fmt, clippy, tests, fix some tests after startup refacto 2025-10-30 12:00:00 +01:00
Baptiste Careil
0337fcab1f
Automate some tests 2025-08-06 12:00:00 +02:00
ppom
270a1a9bdf
Duplicate: Fix tests, more tests 2025-07-14 12:00:00 +02:00
ppom
6a778f3d01
cargo fmt, cargo clippy --all-targets 2025-06-24 12:00:00 +02:00
ppom
4cb69fb0d4
Add test for trigger command 2025-06-23 12:00:00 +02:00
ppom
5bccdb5ba7
Add oneshot option for actions
Fixes #92
2025-06-10 12:00:00 +02:00
ppom
859e35e5c3 Speed up tests now that we handle millisecond precision
Previously database cropped to the second precision
Now it keeps millisecond precision and handle millisecond units
2025-02-26 12:00:00 +01:00
ppom
82ab861132 Fix and enhance tests
The tokio task that removes the trigger after the last after-action was
not woken up & cancelled by the cancellation token, but left to die when
tokio quits.

Unfortunately this broke the tests, where tokio is kept from one
reaction launch to another. Those tasks kept a reference to the DB, then
preventing it to close, then preventing a new DB instance from being
opened.

This was difficult to debug due to the tests only checking that reaction
quits with an error, but not testing what kind of error it is.
So they now check that reaction quits with the "normal" error, which is
that all streams finished.

The tokio task is now woken up, like the other sleeping tasks, at
shutdown, and quits doing nothing.

It's not very satisfying because I assume it's a bit costly to wake up a
task, so I'm gonna see how I can improve this.

I may start a new tokio runtime for each subtest.
I may delete this task and move its instructions to the last
after-action.
I may do both.
2025-02-16 12:00:00 +01:00
Baptiste Careil
a3081b0486 Fix #111: Streams now read stderr from started processes 2024-11-11 16:54:35 +01:00
ppom
79677cf327 Restructure code and document it in ARCHITECTURE.md 2024-10-26 12:00:00 +02:00
ppom
40fc6e3380 Fix client-daemon protocol & client output 2024-10-24 12:00:00 +02:00
ppom
3dd97523fd Move new rust codebase to root dir 2024-10-24 12:00:00 +02:00
Renamed from rust/tests/simple.rs (Browse further)