chore: Dispose all clients in test

This commit is contained in:
Krille 2024-12-18 11:03:53 +01:00
parent 9777dfbbd9
commit e2f37c2ace
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
3 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ jobs:
- name: Run tests - name: Run tests
run: | run: |
dart pub get 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: pub-dev-dry-run:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -6,7 +6,7 @@ if [ -n "$NO_OLM" ]; then
tagFlag="-x olm" tagFlag="-x olm"
fi fi
dart test --concurrency=$thread_count --coverage=coverage_dir $tagFlag --fail-fast dart test --concurrency=$thread_count --coverage=coverage_dir $tagFlag
TEST_CODE=$? TEST_CODE=$?
# lets you do more stuff like reporton # lets you do more stuff like reporton

View File

@ -109,7 +109,7 @@ void main() {
}); });
test('Login', () async { test('Login', () async {
final matrix = Client( matrix = Client(
'testclient', 'testclient',
httpClient: FakeMatrixApi(), httpClient: FakeMatrixApi(),
databaseBuilder: getDatabase, databaseBuilder: getDatabase,