Skip to content

Commit 7296a58

Browse files
committed
test: fix app_links test
1 parent efe8e5d commit 7296a58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/supabase_flutter/test/supabase_flutter_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ void main() {
145145
// Wait for the initial app link to be handled, as this is an async
146146
// process when mocking the event channel.
147147
if (mockEventChannel) {
148-
await AppLinks().uriLinkStream.first;
148+
await AppLinks().getLatestLink();
149+
await Future.delayed(const Duration(milliseconds: 500));
149150
}
150151
expect(pkceHttpClient.requestCount, 1);
151152
expect(pkceHttpClient.lastRequestBody['auth_code'], 'my-code-verifier');

0 commit comments

Comments
 (0)