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 { class ProcessorConnectionState {
ProcessorConnectionState(); ProcessorConnectionState();
VeilidStateAttachment attachment = const VeilidStateAttachment( VeilidStateAttachment attachment = VeilidStateAttachment(
localNetworkReady: false, localNetworkReady: false,
publicInternetReady: false, publicInternetReady: false,
state: AttachmentState.detached); state: AttachmentState.detached,
uptime: TimestampDuration(
value: BigInt.zero,
),
attachedUptime: null);
VeilidStateNetwork network = VeilidStateNetwork( VeilidStateNetwork network = VeilidStateNetwork(
bpsDown: BigInt.from(0), bpsDown: BigInt.zero, bpsUp: BigInt.zero, started: false, peers: []);
bpsUp: BigInt.from(0),
started: false,
peers: []);
bool get isAttached => !(attachment.state == AttachmentState.detached || bool get isAttached => !(attachment.state == AttachmentState.detached ||
attachment.state == AttachmentState.detaching || attachment.state == AttachmentState.detaching ||

View File

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