Skip to content

Commit

Permalink
make isCurrentTestPassing into a getter
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia committed Sep 29, 2023
1 parent b412a88 commit 44d6818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/patrol/lib/src/binding.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class PatrolBinding extends IntegrationTestWidgetsFlutterBinding {
'finished test $_currentDartTest. Will report its status back to the native side',
);

final passed = global_state.isCurrentTestPassing();
final passed = global_state.isCurrentTestPassing;
logger(
'tearDown(): test "$testName" in group "$_currentDartTest", passed: $passed',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/patrol/lib/src/global_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ String get currentTestIndividualName {
}

/// Returns whether the current test is passing.
bool isCurrentTestPassing() {
bool get isCurrentTestPassing {
return Invoker.current!.liveTest.state.result.isPassing;
}

0 comments on commit 44d6818

Please sign in to comment.