Skip to content

Commit

Permalink
chore: Dispose all clients in test
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Dec 18, 2024
1 parent 9777dfb commit e2f37c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/client_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void main() {
});

test('Login', () async {
final matrix = Client(
matrix = Client(
'testclient',
httpClient: FakeMatrixApi(),
databaseBuilder: getDatabase,
Expand Down

0 comments on commit e2f37c2

Please sign in to comment.