From 072cd94839c13888fcd2e6b9800ddbdeb3bb5ef3 Mon Sep 17 00:00:00 2001 From: Yegor Date: Thu, 1 Nov 2018 10:35:09 -0700 Subject: [PATCH] call hapticFunction directly (#23830) --- packages/flutter/test/services/haptic_feedback_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/test/services/haptic_feedback_test.dart b/packages/flutter/test/services/haptic_feedback_test.dart index 6b080678882..9a01f8e4364 100644 --- a/packages/flutter/test/services/haptic_feedback_test.dart +++ b/packages/flutter/test/services/haptic_feedback_test.dart @@ -27,7 +27,7 @@ void main() { log.add(methodCall); }); - await Function.apply(hapticFunction, null); + await hapticFunction(); expect(log, hasLength(1)); expect( log.last,