From e2f37c2acea6c280b64b1913db0e96efc8b2bfa9 Mon Sep 17 00:00:00 2001 From: Krille Date: Wed, 18 Dec 2024 11:03:53 +0100 Subject: [PATCH] chore: Dispose all clients in test --- .github/workflows/app.yml | 2 +- scripts/test.sh | 2 +- test/client_test.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index cdd83e2cf..91e5529d3 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -129,7 +129,7 @@ jobs: - name: Run tests run: | dart pub get - dart test test/box_test.dart --platform chrome --fail-fast + dart test test/box_test.dart --platform chrome pub-dev-dry-run: runs-on: ubuntu-latest diff --git a/scripts/test.sh b/scripts/test.sh index 3aa45815b..84207a80d 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -6,7 +6,7 @@ if [ -n "$NO_OLM" ]; then tagFlag="-x olm" fi -dart test --concurrency=$thread_count --coverage=coverage_dir $tagFlag --fail-fast +dart test --concurrency=$thread_count --coverage=coverage_dir $tagFlag TEST_CODE=$? # lets you do more stuff like reporton diff --git a/test/client_test.dart b/test/client_test.dart index 0cf30862a..162fb222c 100644 --- a/test/client_test.dart +++ b/test/client_test.dart @@ -109,7 +109,7 @@ void main() { }); test('Login', () async { - final matrix = Client( + matrix = Client( 'testclient', httpClient: FakeMatrixApi(), databaseBuilder: getDatabase,