mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-12-14 23:45:53 -05:00
immutable config
move node id and public key init to routing table
This commit is contained in:
parent
bad7f3b89e
commit
8b5f77f264
39 changed files with 313 additions and 574 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue