(t *testing.T)
| 365 | } |
| 366 | |
| 367 | func TestResolveWorkflowRunIDFallsBackToPolling(t *testing.T) { |
| 368 | var attempts int |
| 369 | runID, err := resolveWorkflowRunID("", func() (string, error) { |
| 370 | attempts++ |
| 371 | return "5678", nil |
| 372 | }, func(time.Duration) { |
| 373 | t.Fatal("unexpected sleep") |
| 374 | }) |
| 375 | |
| 376 | require.NoError(t, err) |
| 377 | assert.Equal(t, "5678", runID) |
| 378 | assert.Equal(t, 1, attempts) |
| 379 | } |
| 380 | |
| 381 | func TestCollectWorkflowRunDiagnostics(t *testing.T) { |
| 382 | // Given diagnostic commands that expose each Actions registration boundary |
nothing calls this directly
no test coverage detected