Skip to content

Commit

Permalink
increase sleep time to have a more stable test
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-mwangi committed May 24, 2024
1 parent 65a1ddc commit ff994c1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ func TestCustomBspPanicExporterShouldNotPanic(t *testing.T) {
startAndEndSpan(tracer, "span1")
startAndEndSpan(tracer, "span2")
startAndEndSpan(tracer, panicSpanStr)
time.Sleep(8 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
verifyFunc(2)

startAndEndSpan(tracer, "span4")
time.Sleep(8 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
verifyFunc(3)

// Only span5 and span6 will be exported. span8 is discarded since the spans loop does not get to it before
Expand All @@ -48,13 +48,13 @@ func TestCustomBspPanicExporterShouldNotPanic(t *testing.T) {
startAndEndSpan(tracer, "span6")
startAndEndSpan(tracer, panicSpanStr)
startAndEndSpan(tracer, "span8")
time.Sleep(8 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
verifyFunc(5)

startAndEndSpan(tracer, "span9")
startAndEndSpan(tracer, "span10")
startAndEndSpan(tracer, "span11")
time.Sleep(8 * time.Millisecond)
time.Sleep(10 * time.Millisecond)
verifyFunc(8)
}

Expand Down

0 comments on commit ff994c1

Please sign in to comment.