Skip to content

Commit

Permalink
troubleshoot test
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAZimmerly committed Jan 3, 2025
1 parent b5de516 commit 90d1a43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/java/com/arcxp/video/service/AdUtilsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1148,12 +1148,12 @@ class AdUtilsTest {
fun `callBeaconUrl calls endpoint`() = runTest {
mockkObject(Utils)
mockkObject(DependencyFactory)
coEvery { DependencyFactory.ioDispatcher()} returns Dispatchers.Unconfined
coEvery { Utils.createURLandReadText(spec = "url")} returns "something we discard"
every { DependencyFactory.ioDispatcher()} returns Dispatchers.Unconfined
every { Utils.createURLandReadText(spec = "url")} returns "something we discard"

callBeaconUrl("url")

coVerify (exactly = 1) {
verify (exactly = 1) {
Utils.createURLandReadText(spec = "url")
}

Expand Down

0 comments on commit 90d1a43

Please sign in to comment.