Skip to content

Check v3.0.0

gripmock check verifies that a running GripMock server is healthy.

It uses gRPC health checks and waits until service gripmock becomes SERVING.

Usage

bash
gripmock check

Options

FlagShortDefaultDescription
--timeout-t10sTotal time to wait for readiness.
--interval500msDelay between health check attempts.
--silentfalseSuppress error output from command.

Examples

Wait up to 30 seconds:

bash
gripmock check --timeout 30s

Check more aggressively every 100ms:

bash
gripmock check --timeout 10s --interval 100ms

Use in CI script:

bash
gripmock check --timeout 20s --silent

Typical CI pattern

bash
gripmock --stub ./stubs ./proto &
gripmock check --timeout 20s
go test ./...