Skip to content

Commit

Permalink
try setting a timeout in observation listener test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal committed Jan 3, 2025
1 parent 4690cf2 commit edc7b7c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ class ObservationEventListenerTests {
@Autowired
private lateinit var observationEventListener: ObservationEventListener

@MockkBean(relaxed = true)
@MockkBean
private lateinit var entityService: EntityService

@MockkBean(relaxed = true)
@MockkBean
private lateinit var entityEventService: EntityEventService

private val expectedEntityId = "urn:ngsi-ld:BeeHive:01".toUri()
Expand Down Expand Up @@ -91,7 +91,7 @@ class ObservationEventListenerTests {

observationEventListener.dispatchObservationMessage(observationEvent)

coVerify {
coVerify(timeout = 1000L) {
entityService.partialUpdateAttribute(
expectedEntityId,
match { it.first == TEMPERATURE_PROPERTY },
Expand Down

0 comments on commit edc7b7c

Please sign in to comment.