Atlas › Test

with_message

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

Package
go.temporal.io/server/common/testing/await
Suite / test hierarchy
TestReportTimeout/with_message
Test
with_message
Introduced at
with_message Frontier kind: Test frontier
Covered ranges
6
Covered lines
15
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 15 covered LOC · 6 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) report.go
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