From a13be692821a14ecff9f7ecfdfaaebaa56993357 Mon Sep 17 00:00:00 2001 From: Sitaram Kalluri Date: Wed, 20 Sep 2023 12:24:37 +0530 Subject: [PATCH] fix: Add dependency overrides for at_persistence_secondary_server --- .../test/commit_log_test.dart | 8 ++++---- packages/at_secondary_server/pubspec.yaml | 8 ++++++++ tests/at_functional_test/pubspec.yaml | 7 +++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/packages/at_persistence_secondary_server/test/commit_log_test.dart b/packages/at_persistence_secondary_server/test/commit_log_test.dart index c4ff6a9fc..2bbb63efe 100644 --- a/packages/at_persistence_secondary_server/test/commit_log_test.dart +++ b/packages/at_persistence_secondary_server/test/commit_log_test.dart @@ -479,10 +479,10 @@ void main() async { for (int i = 0; i < 10; i++) { if (i % 2 == 0) { await commitLogKeystore.getBox().add(CommitEntry( - 'test_key_false_$i', CommitOp.UPDATE, DateTime.now())); + 'test_key_false_$i.wavi@alice', CommitOp.UPDATE, DateTime.now())); } else { await commitLogKeystore.getBox().add( - CommitEntry('test_key_false_$i', CommitOp.UPDATE, DateTime.now()) + CommitEntry('test_key_false_$i.wavi@alice', CommitOp.UPDATE, DateTime.now()) ..commitId = i); } } @@ -504,10 +504,10 @@ void main() async { for (int i = 0; i < 10; i++) { if (i % 2 == 0) { await commitLogKeystore.getBox().add( - CommitEntry('test_key_true_$i', CommitOp.UPDATE, DateTime.now())); + CommitEntry('test_key_true_$i.wavi@alice', CommitOp.UPDATE, DateTime.now())); } else { await commitLogKeystore.getBox().add( - CommitEntry('test_key_true_$i', CommitOp.UPDATE, DateTime.now()) + CommitEntry('test_key_true_$i.wavi@alice', CommitOp.UPDATE, DateTime.now()) ..commitId = i); } } diff --git a/packages/at_secondary_server/pubspec.yaml b/packages/at_secondary_server/pubspec.yaml index 4ecb1652a..93331e1f9 100644 --- a/packages/at_secondary_server/pubspec.yaml +++ b/packages/at_secondary_server/pubspec.yaml @@ -35,6 +35,14 @@ dependencies: yaml: 3.1.2 logging: 1.2.0 +dependency_overrides: + at_persistence_secondary_server: + git: + url: https://github.com/atsign-foundation/at_server.git + path: packages/at_persistence_secondary_server + ref: apkam_sync_persistence_changes + + dev_dependencies: test: ^1.24.4 coverage: ^1.6.1 diff --git a/tests/at_functional_test/pubspec.yaml b/tests/at_functional_test/pubspec.yaml index e0a4919e0..b88c78349 100644 --- a/tests/at_functional_test/pubspec.yaml +++ b/tests/at_functional_test/pubspec.yaml @@ -20,6 +20,13 @@ dependencies: uuid: ^3.0.7 elliptic: ^0.3.8 +dependency_overrides: + at_persistence_secondary_server: + git: + url: https://github.com/atsign-foundation/at_server.git + path: packages/at_persistence_secondary_server + ref: apkam_sync_persistence_changes + dev_dependencies: lints: ^1.0.1 test: ^1.24.3