Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ademar111190 committed Oct 19, 2023
1 parent a725183 commit ab2d5ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/bloc/input/input_bloc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'package:c_breez/services/injector.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:path_provider_platform_interface/path_provider_platform_interface.dart';

import '../../mock/breez_bridge_mock.dart';
import '../../mock/injector_mock.dart';
import '../../unit_logger.dart';
import '../../utils/fake_path_provider_platform.dart';
Expand Down
2 changes: 1 addition & 1 deletion test/mock/breez_bridge_mock.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class BreezSDKMock extends Mock implements BreezSDK {
Stream<InvoicePaidDetails> get invoicePaidStream => invoicePaidController.stream;

@override
final nodeStateController = StreamController<NodeState?>.broadcast();
final nodeStateController = BehaviorSubject<NodeState?>();

@override
Stream<NodeState?> get nodeStateStream => nodeStateController.stream;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void setUpLogger() {
Logger.root.onRecord.listen((record) {
// Dart analyzer doesn't understand that here we are in debug mode so we have to use kDebugMode again
if (kDebugMode) {
print("[${record.loggerName}] {${record.level.name}} (${record.time}) : ${record.message}");
debugPrint("[${record.loggerName}] {${record.level.name}} (${record.time}) : ${record.message}");
}
});
}
Expand Down

0 comments on commit ab2d5ab

Please sign in to comment.