MCPcopy Create free account
hub / github.com/cli/cli / TestResolveWorkflowRunIDFallsBackToPolling

Function TestResolveWorkflowRunIDFallsBackToPolling

acceptance/acceptance_test.go:367–379  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

365}
366
367func 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
381func TestCollectWorkflowRunDiagnostics(t *testing.T) {
382 // Given diagnostic commands that expose each Actions registration boundary

Callers

nothing calls this directly

Calls 2

resolveWorkflowRunIDFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected