Skip to content

Commit c5136d6

Browse files
committed
chore: fix test
1 parent df743ee commit c5136d6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

tests/integration_test/cloud_functions/cloud_functions_e2e_test.dart

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,21 @@ void main() {
421421
test(
422422
'throws error when aborted with Abort signal',
423423
() async {
424+
final instance = FirebaseFunctions.instance;
425+
instance.useFunctionsEmulator('localhost', 5001);
426+
424427
final completer = Completer<void>();
425428

426-
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(
427439
(data) {
428440
completer.completeError('Should have thrown');
429441
},

0 commit comments

Comments
 (0)