이벤트 가져오기 위젯 테스트 추가 및 테스트 훅 도입
This commit is contained in:
@@ -187,7 +187,7 @@ class EventBus {
|
||||
if (kDebugMode) {
|
||||
debugPrint('EventBus: 인스턴스 정리 중 - ${entry.key}');
|
||||
}
|
||||
entry.value.dispose(); // 완전히 dispose 호출
|
||||
await entry.value.dispose(); // 완전히 dispose 호출
|
||||
|
||||
// 각 인스턴스 dispose 후 마이크로태스크 실행으로 비동기 작업 완료 보장
|
||||
await Future.microtask(() {});
|
||||
@@ -344,7 +344,7 @@ class EventBus {
|
||||
// 테스트 ID가 있지만 인스턴스가 없는 경우 생성
|
||||
if (!_testInstances.containsKey(_currentTestId!)) {
|
||||
if (kDebugMode) {
|
||||
debugPrint('EventBus: 테스트 ID ${_currentTestId}에 대한 새 인스턴스 생성');
|
||||
debugPrint('EventBus: 테스트 ID $_currentTestId에 대한 새 인스턴스 생성');
|
||||
}
|
||||
_testInstances[_currentTestId!] = EventBus._internal();
|
||||
_testInstances[_currentTestId!]!.reset();
|
||||
|
||||
Reference in New Issue
Block a user