Skip to main content
Glama
FakeTimer.kt583 B
package maestro.test.drivers import maestro.utils.MaestroTimer class FakeTimer { private val events = mutableListOf<Event>() fun timer(): (MaestroTimer.Reason, Long) -> Unit { return { reason, time -> events.add(Event(reason, time)) } } fun assertNoEvent(reason: MaestroTimer.Reason) { if (events.any { it.reason == reason }) { throw AssertionError("Timer event for $reason was not expected") } } private data class Event( val reason: MaestroTimer.Reason, val time: Long, ) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server