Skip to content

Commit

Permalink
Temporarily log the start and end of the Mongo unit tests.
Browse files Browse the repository at this point in the history
We sometimes get MongoDB ConcurrentModificationException and I speculate
it's a bad interaction between two tests running at the same time. With
this logging in place, I at least have some hope of determining which
tests were running in parallel so I can start to form a theory.
  • Loading branch information
prdoyle committed Jul 6, 2024
1 parent fc3e0cc commit bd914cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib-testing/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

<!-- This emits warnings that matter in production but not in tests -->
<logger name="works.bosk.drivers.mongo.UninitializedCollectionException" level="ERROR"/>
<logger name="works.bosk.drivers.mongo.AbstractMongoDriverTest" level="INFO"/>

<!-- How to add more tracing during unit tests
<logger name="works.bosk.drivers.mongo" level="DEBUG"/>
<logger name="works.bosk.drivers.DriverConformanceTest" level="DEBUG"/>
<logger name="works.bosk.drivers.mongo.PandoFormatDriver" level="TRACE"/>
<logger name="works.bosk.drivers.mongo.MainDriver" level="TRACE"/>
<logger name="works.bosk.drivers.mongo.AbstractMongoDriverTest" level="INFO"/>
<logger name="works.bosk.drivers.mongo.BoskLogFilter" level="DEBUG"/>
-->

Expand Down

0 comments on commit bd914cd

Please sign in to comment.