We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df743ee commit c5136d6Copy full SHA for c5136d6
1 file changed
tests/integration_test/cloud_functions/cloud_functions_e2e_test.dart
@@ -421,9 +421,21 @@ void main() {
421
test(
422
'throws error when aborted with Abort signal',
423
() async {
424
+ final instance = FirebaseFunctions.instance;
425
+ instance.useFunctionsEmulator('localhost', 5001);
426
+
427
final completer = Completer<void>();
428
- callable.stream().listen(
429
+ final timeoutCallable = FirebaseFunctions.instance.httpsCallable(
430
+ kTestFunctionTimeout,
431
+ options: HttpsCallableOptions(
432
+ webAbortSignal: Abort('aborted'),
433
+ ),
434
+ );
435
436
+ timeoutCallable.stream({
437
+ 'testTimeout': const Duration(seconds: 6).inMilliseconds.toString(),
438
+ }).listen(
439
(data) {
440
completer.completeError('Should have thrown');
441
},
0 commit comments