From f0b6f1f50d4da1e544249327e0fc73fc97ff6aba Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Wed, 2 Sep 2020 19:34:58 +0200 Subject: [PATCH] fix test which reads modification time. --- .github/workflows/dart.yml | 2 +- test/kdbx4_test.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 0c40fc0..2e4abe7 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -40,4 +40,4 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage/lcov.info - base-path: . +# base-path: . diff --git a/test/kdbx4_test.dart b/test/kdbx4_test.dart index cd588ba..e625e5b 100644 --- a/test/kdbx4_test.dart +++ b/test/kdbx4_test.dart @@ -38,8 +38,10 @@ void main() { test('Reading kdbx4_keeweb modification time', () async { final file = await TestUtil.readKdbxFile('test/kdbx4_keeweb.kdbx'); final firstEntry = file.body.rootGroup.entries.first; + final createTime = firstEntry.times.creationTime.get(); + expect(createTime, DateTime.utc(2020, 2, 26, 13, 40, 48)); final modTime = firstEntry.times.lastModificationTime.get(); - expect(modTime, DateTime.utc(2020, 2, 26, 13, 40, 48)); + expect(modTime, DateTime.utc(2020, 2, 26, 13, 40, 54)); }); test('Change kdbx4 modification time', () async { final file = await TestUtil.readKdbxFile('test/kdbx4_keeweb.kdbx');