mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-24 14:59:31 -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 {
|
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 ||
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user