(t *testing.T, ctx context.Context, cfg Config)
| 151 | } |
| 152 | |
| 153 | func runAgent(t *testing.T, ctx context.Context, cfg Config) <-chan error { |
| 154 | t.Helper() |
| 155 | done := make(chan error, 1) |
| 156 | go func() { done <- Run(ctx, cfg) }() |
| 157 | return done |
| 158 | } |
| 159 | |
| 160 | // 1) 成功连接:mock server 收到 hello。 |
| 161 | func TestAgent_HelloOnConnect(t *testing.T) { |
no test coverage detected