Commit b3898ba
test(logger): declare LoggerLifecycleRaceTest @test return type as Unit
Two of the four new tests had
unBlocking { ... shouldBe true } as their expression body. Kotlin inferred the return type as Boolean, the compiler emitted public final boolean reinitAfterShutdownSucceeds(), and JUnit Jupiter silently skipped both methods (it only discovers @test methods that return void/Unit). Tests passed locally because they were never discovered.
Adds explicit : Unit to all four @test fun ...() = runBlocking { ... } declarations so the compiler always emits a �oid JVM signature, guaranteeing discovery.
Verified: TEST-LoggerLifecycleRaceTest\.xml now reports tests=2 (was 1); TEST-LoggerLifecycleRaceTest\.xml stays at tests=2; all four pass.
Follows up d09ce91.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f1c4d02 commit b3898ba
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
0 commit comments