immutable config

move node id and public key init to routing table
This commit is contained in:
Christien Rioux 2025-09-09 19:29:44 -05:00
parent bad7f3b89e
commit 8b5f77f264
39 changed files with 313 additions and 574 deletions

View file

@ -10,8 +10,8 @@ final bogusKey =
Future<void> testGetDHTValueUnopened() async {
final rc = await Veilid.instance.routingContext();
try {
await expectLater(() async => rc.getDHTValue(bogusKey, 0),
throwsA(isA<VeilidAPIException>()));
await expectLater(
() => rc.getDHTValue(bogusKey, 0), throwsA(isA<VeilidAPIException>()));
} finally {
rc.close();
}
@ -20,8 +20,8 @@ Future<void> testGetDHTValueUnopened() async {
Future<void> testOpenDHTRecordNonexistentNoWriter() async {
final rc = await Veilid.instance.routingContext();
try {
await expectLater(() async => rc.openDHTRecord(bogusKey),
throwsA(isA<VeilidAPIException>()));
await expectLater(
() => rc.openDHTRecord(bogusKey), throwsA(isA<VeilidAPIException>()));
} finally {
rc.close();
}
@ -30,8 +30,8 @@ Future<void> testOpenDHTRecordNonexistentNoWriter() async {
Future<void> testCloseDHTRecordNonexistent() async {
final rc = await Veilid.instance.routingContext();
try {
await expectLater(() async => rc.closeDHTRecord(bogusKey),
throwsA(isA<VeilidAPIException>()));
await expectLater(
() => rc.closeDHTRecord(bogusKey), throwsA(isA<VeilidAPIException>()));
} finally {
rc.close();
}
@ -40,8 +40,8 @@ Future<void> testCloseDHTRecordNonexistent() async {
Future<void> testDeleteDHTRecordNonexistent() async {
final rc = await Veilid.instance.routingContext();
try {
await expectLater(() async => rc.deleteDHTRecord(bogusKey),
throwsA(isA<VeilidAPIException>()));
await expectLater(
() => rc.deleteDHTRecord(bogusKey), throwsA(isA<VeilidAPIException>()));
} finally {
rc.close();
}