Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] LogManager type casting errors in configuration handling #8

Open
mrpastewart opened this issue Jan 5, 2025 · 0 comments
Open
Labels
Type: Test A problem or enhancement related to a test.

Comments

@mrpastewart
Copy link
Contributor

mrpastewart commented Jan 5, 2025

Select package

Log

Which jobs/test(s) are failing

test/log_manager_test.dart:LogManager creates default channel
test/log_manager_test.dart:LogManager creates specific channel
test/log_manager_test.dart:LogManager creates stack channel

Reason for failure/description

Type casting errors when handling configuration in LogManager. Two specific error patterns:

  1. type 'String' is not a subtype of type 'Map<String dynamic>'
  2. type 'Null' is not a subtype of type 'Map<String dynamic>'

The errors occur in MockApplication.make() and propagate through the LogManager's configuration methods. This suggests an issue with how configuration data is being handled in the test environment.

Is this a regression?

No

Media proof

type 'String' is not a subtype of type 'Map<String dynamic>' in type cast
  test/log_manager_test.dart 43:37                  MockApplication.make
  package:platform_log/src/log_manager.dart 48:38   LogManager.getDefaultDriver

Additional context

  • Location: packages/log/test/log_manager_test.dart
  • The issue appears to be in the mock application setup for testing
  • Affects all LogManager configuration-related functionality
@mrpastewart mrpastewart added the Type: Test A problem or enhancement related to a test. label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Test A problem or enhancement related to a test.
Projects
None yet
Development

No branches or pull requests

1 participant