mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-24 06:49:38 -05:00
bugfix for tests
This commit is contained in:
parent
5e81379469
commit
d6aa864790
@ -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 ||
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user