From d6aa86479042fe2de1cb9612122be33ea8c5afc6 Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sat, 19 Oct 2024 12:53:50 -0400 Subject: [PATCH] bugfix for tests --- .../lib/src/processor_connection_state.dart | 13 +++++++------ .../lib/src/update_processor_fixture.dart | 4 +++- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/veilid-flutter/packages/veilid_test/lib/src/processor_connection_state.dart b/veilid-flutter/packages/veilid_test/lib/src/processor_connection_state.dart index 6272bf07..1cfc3b54 100644 --- a/veilid-flutter/packages/veilid_test/lib/src/processor_connection_state.dart +++ b/veilid-flutter/packages/veilid_test/lib/src/processor_connection_state.dart @@ -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 || diff --git a/veilid-flutter/packages/veilid_test/lib/src/update_processor_fixture.dart b/veilid-flutter/packages/veilid_test/lib/src/update_processor_fixture.dart index 9227497d..3566f629 100644 --- a/veilid-flutter/packages/veilid_test/lib/src/update_processor_fixture.dart +++ b/veilid-flutter/packages/veilid_test/lib/src/update_processor_fixture.dart @@ -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); } }); }