mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-06-08 07:02:49 -04:00
add watchvalue test and some more routing context convenience functions
This commit is contained in:
parent
30cc4a814b
commit
b51c660b9c
7 changed files with 174 additions and 19 deletions
|
@ -55,7 +55,8 @@ Future<void> testAppMessageLoopback(Stream<VeilidUpdate> updateStream) async {
|
|||
await Veilid.instance.debug("purge routes");
|
||||
|
||||
// make a routing context that uses a safety route
|
||||
final rc = await Veilid.instance.routingContext();
|
||||
final rc = await Veilid.instance
|
||||
.safeRoutingContext(sequencing: Sequencing.ensureOrdered);
|
||||
try {
|
||||
// make a new local private route
|
||||
final prl = await Veilid.instance.newPrivateRoute();
|
||||
|
@ -96,7 +97,8 @@ Future<void> testAppCallLoopback(Stream<VeilidUpdate> updateStream) async {
|
|||
await Veilid.instance.debug("purge routes");
|
||||
|
||||
// make a routing context that uses a safety route
|
||||
final rc = await Veilid.instance.routingContext();
|
||||
final rc = await Veilid.instance
|
||||
.safeRoutingContext(sequencing: Sequencing.ensureOrdered);
|
||||
try {
|
||||
// make a new local private route
|
||||
final prl = await Veilid.instance.newPrivateRoute();
|
||||
|
@ -153,7 +155,8 @@ Future<void> testAppMessageLoopbackBigPackets(
|
|||
await Veilid.instance.debug("purge routes");
|
||||
|
||||
// make a routing context that uses a safety route
|
||||
final rc = await Veilid.instance.routingContext();
|
||||
final rc = await Veilid.instance
|
||||
.safeRoutingContext(sequencing: Sequencing.ensureOrdered);
|
||||
try {
|
||||
// make a new local private route
|
||||
final prl = await Veilid.instance.newPrivateRoute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue