osxhacker / demo-microsite

An exploration of microsite/microservice concepts.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Intermittent Kamon Unit Test Error #17

Open osxhacker opened 8 months ago

osxhacker commented 8 months ago

An intermittent unit test error in the chassis AdviceSpec exists having the following assertion failure:

AdviceSpec:
The Advice concept
- must support application of a single cross-cutting concern
- must support application of multiple cross-cutting concerns *** FAILED ***
  assert (Kamon.currentContext ().nonEmpty ())
          |     |                 |
          |     |                 false
          |     Context{Entries{span=Span.Empty},Tags{}}
          kamon.Kamon$@51972074 (AdviceSpec.scala:97)

It has only been observed in unit testing and not in deployed services.

Due to its intermittent nature, there could be an initialization timing issue between InitAndStopKamonAfterAll and how the specifications are executed.