test_wake

command
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Agent simulation test - wake a running Go app and observe it.

This script simulates what an AI agent typically does with Detrix:

  1. Starts a target application (detrix_example_app)
  2. Waits for it to initialize
  3. Wakes the Detrix client in the app via control plane
  4. Sets metrics on the running process via daemon API
  5. Receives and displays captured events

Usage:

  1. Make sure the Detrix daemon is running: $ detrix serve --daemon

  2. Build the fixture app (from fixtures/go directory): $ go build -gcflags="all=-N -l" -o detrix_example_app .

  3. Run this test (from clients/go directory): $ go run ./examples/test_wake

    Or with custom daemon port: $ go run ./examples/test_wake --daemon-port 9999

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL