From 6ca9039fb678153d49dda544fe9425f714da5f60 Mon Sep 17 00:00:00 2001 From: iainism Date: Tue, 22 Nov 2022 11:48:19 +0000 Subject: [PATCH] Update README.md Add note (to spy and coroutines sections) about known issue with suspending functions and spy (issue now nearly two years old) --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fa847839..6225660b1 100644 --- a/README.md +++ b/README.md @@ -282,7 +282,8 @@ verify { car.drive(Direction.NORTH) } confirmVerified(car) ``` -Note: the spy object is a copy of the passed object. +Note 1: the spy object is a copy of the passed object. +Note 2: there is a known issue if using a spy with a suspending function: https://github.com/mockk/mockk/issues/554 ### Relaxed mock @@ -873,6 +874,8 @@ runTest { } ``` +Note: there is a known issue if using a spy with a suspending function: https://github.com/mockk/mockk/issues/554 + ### Extension functions There are three types of extension function in Kotlin: