fix: async test
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 44s
Pull Request Pipeline / lint (pull_request) Successful in 52s

This commit is contained in:
2026-05-21 00:34:48 +02:00
parent 8b1a447bd9
commit aaeb4bf18c

View File

@@ -925,7 +925,12 @@ void main() {
expect(jsonString, isNotEmpty); expect(jsonString, isNotEmpty);
final isValid = await DataTransferService.validateJsonSchema(jsonString); // Schema validation requires real async operations (rootBundle,
// HttpClient within json_schema). These must run via
// tester.runAsync, otherwise the test hangs due to a pending timer.
final isValid = await tester.runAsync(
() => DataTransferService.validateJsonSchema(jsonString),
);
expect(isValid, true); expect(isValid, true);
}); });
}); });