Commit Graph
4 Commits
Author SHA1 Message Date
Floris Bruynooghe b0ade88df2 ref: Bring back testdir for integration tests (#811)
This should have a fix for the windows bug now.
2023-03-03 14:54:52 +01:00
Rüdiger Klaehn a3ed15a876 Daemonize iroh (#779)
* ref: use separate alpn for rpc calls

* feat: pass errors to the client

* Add comment about path

* feat: copy over the watch and version stuff from iroh

This is so we can detect if the sendme server is running

* docs: add todo about better way to check the server is available

* refactor: update to new quic-rpc

* refactor: move RpcError and RpcResult to util

* refactor: prettify the code a bit

* feat: print peer id and address and stuff on startup

* refactor: make a constant for RPC port

* refactor: Put RPC_ALPN into a const

* fix: use Ipv4Addr::LOCALHOST on server

* fix: ipv6

* refactor: Use RwLock instead of mutex

Should help a bit, so why not?

* feature: make rpc port configurable

* add ability to talk to provider internally via the RPC interface

* adapt cli tests

* review comments

* docs: Add some docs for why we need to wait when closing a rpc client

* feat: nicer output for add and provide

* clippy

* fix: better output for list

* refactor: remove the delay when dropping the client

This now gets taken care of in quic-rpc. The shutdown_timeout is good to
limit the time for a clean shutdown so we don't have to wait indefinitely.
2023-03-01 19:53:32 +02:00
Kasey d6456d26b4 add more context to the tests to better understand why certain matches failed (#799)
also adjust the order of testing: we now test the success of the `get` command & the output file before testing the stderr output
2023-03-01 09:59:30 -05:00
Kasey 61ba002855 test: cli integration test for provide-get loop (#781)
Tests the provide-get loop, transferring a single file, a folder of multiple files, and data from stdin of the provider to stdout if the better, ensuring that the content is transferred successfully.

The tests also test the stdout of the provider and stderr of the getter, using regex matching on each line of the respective output.
2023-02-24 11:35:05 -05:00