bugfix for tests

This commit is contained in:
Christien Rioux 2024-10-19 12:53:50 -04:00
parent 5e81379469
commit d6aa864790
2 changed files with 10 additions and 7 deletions

View File

@ -3,15 +3,16 @@ import 'package:veilid/veilid.dart';
class ProcessorConnectionState {
ProcessorConnectionState();
VeilidStateAttachment attachment = const VeilidStateAttachment(
VeilidStateAttachment attachment = VeilidStateAttachment(
localNetworkReady: false,
publicInternetReady: false,
state: AttachmentState.detached);
state: AttachmentState.detached,
uptime: TimestampDuration(
value: BigInt.zero,
),
attachedUptime: null);
VeilidStateNetwork network = VeilidStateNetwork(
bpsDown: BigInt.from(0),
bpsUp: BigInt.from(0),
started: false,
peers: []);
bpsDown: BigInt.zero, bpsUp: BigInt.zero, started: false, peers: []);
bool get isAttached => !(attachment.state == AttachmentState.detached ||
attachment.state == AttachmentState.detaching ||

View File

@ -29,7 +29,9 @@ class UpdateProcessorFixture {
processorConnectionState.attachment = VeilidStateAttachment(
state: update.state,
publicInternetReady: update.publicInternetReady,
localNetworkReady: update.localNetworkReady);
localNetworkReady: update.localNetworkReady,
uptime: update.uptime,
attachedUptime: update.attachedUptime);
}
});
}