Atlas › Test

without_message

Exact test identity: go.temporal.io/server/common/testing/await/TestReportTimeout/without_message

Package
go.temporal.io/server/common/testing/await
Suite / test hierarchy
TestReportTimeout/without_message
Test
without_message
Introduced at
without_message Frontier kind: Test frontier
Covered ranges
5
Covered lines
13
Covered files
1

Covered source

Expand a file to inspect source; the > gutter marks covered lines.

go.temporal.io/server/common/testing/await/report.go 13 covered LOC · 5 ranges

Open complete file

42 }
43
44 > func (r timeoutReport) reportAttemptErrors(tb testing.TB) { report.go
45 > reportAttemptErrors(tb, r.failures)
46 > }
47
48 > func (r timeoutReport) reportTimeout(tb testing.TB, funcName, timeoutMsg string) { report.go
49 > r.reportAttemptErrors(tb)
50 > message := fmt.Sprintf("condition not satisfied after %v", r.effectiveTimeout)
51 > if timeoutMsg != "" {
52 message = fmt.Sprintf("%s (not satisfied after %v)", timeoutMsg, r.effectiveTimeout)
53 }
54 > tb.Fatalf("%s: %s\ndetails:\n attempts = %d\n attempt timeouts = %d", report.go
55 > funcName, message, r.attempts, r.attemptTimeouts)
56 }
57
58 > func reportAttemptErrors(tb testing.TB, failures []attemptFailure) { report.go
59 > if len(failures) == 0 {
60 > return report.go
61 > }
62
63 var b strings.Builder