Skip to content

Commit 11b7b3d

Browse files
docs(tests): add documentation on mongo test
1 parent f0793f6 commit 11b7b3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/kotlin/infrastructure/database/MongoUtility.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import de.flapdoodle.net.Net as Network
2222

2323
private inline fun <reified T : Any> T.toTransition() = Start.to(StateID.of(T::class.java)).initializedWith(this)
2424

25+
/** Starts a mongod process on localhost of the running machine. */
2526
internal fun withMongo(operation: () -> Unit) {
2627
if (System.getProperty("os.name").lowercase().contains("win")) {
2728
println("Testing with MongoDB is disabled on Windows due to flaky behavior")

0 commit comments

Comments
 (0)