Skip to content

Commit

Permalink
Add test for message provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tygern committed Apr 14, 2024
1 parent c40c849 commit ba9217d
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package test.initialcapacity.streaming.messages

import io.initialcapacity.streaming.messages.MessageProvider
import kotlinx.coroutines.runBlocking
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.time.Duration

class MessageProviderTest {
@Test
fun testFetchAll() = runBlocking {
assertEquals(
listOf("Here's some slow content.", "It took a while to load.", "And didn't use any javascript."),
MessageProvider(Duration.ZERO).fetchAll()
)
}
}

0 comments on commit ba9217d

Please sign in to comment.