chore: Make parse version error less sound

This commit is contained in:
Krille 2024-12-17 11:46:34 +01:00
parent bc7b987772
commit c58f55c012
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
4 changed files with 5 additions and 6 deletions

View File

@ -129,7 +129,7 @@ jobs:
- name: Run tests
run: |
dart pub get
dart test test/box_test.dart --platform chrome
dart test test/box_test.dart --platform chrome --fail-fast
pub-dev-dry-run:
runs-on: ubuntu-latest

View File

@ -13,11 +13,10 @@ bool isVersionGreaterThanOrEqualTo(String version, String target) {
}
return true;
} catch (e, s) {
Logs().e(
} catch (e) {
Logs().w(
'[_isVersionGreaterThanOrEqualTo] Failed to parse version $version',
e,
s,
);
return false;
}

View File

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

View File

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