Skip to content

Commit ee0f110

Browse files
committed
Fix test placement
1 parent 63e4a31 commit ee0f110

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

ioapp-tests/src/test/scala/IOAppSpec.scala

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -203,31 +203,24 @@ class IOAppSpec extends Specification {
203203
h.stdout() must not(contain("sadness"))
204204
}
205205

206-
test("exit on fatal error from CompletableFuture") {
207-
val h = platform("FatalErrorFromCompletableFuture", List.empty)
208-
assertEquals(h.awaitStatus(), 1)
209-
assert(h.stderr().contains("Boom from CompletableFuture!"))
210-
assert(!h.stdout().contains("sadness"))
211-
}
212-
213-
test("exit on fatal error from async_") {
214-
val h = platform("FatalErrorFromAsync", List.empty)
215-
assertEquals(h.awaitStatus(), 1)
216-
assert(h.stderr().contains("Boom from async!"))
217-
assert(!h.stdout().contains("sadness"))
206+
"exit on raising a fatal error inside a flatMap" in {
207+
val h = platform("RaiseFatalErrorFlatMap", List.empty)
208+
h.awaitStatus() mustEqual 1
209+
h.stderr() must contain("Boom!")
210+
h.stdout() must not(contain("sadness"))
218211
}
219212

220-
test("exit on raising a fatal error inside a map") {
221-
val h = platform("RaiseFatalErrorMap", List.empty)
213+
"exit on fatal error from CompletableFuture" in {
214+
val h = platform("FatalErrorFromCompletableFuture", List.empty)
222215
h.awaitStatus() mustEqual 1
223-
h.stderr() must contain("Boom!")
216+
h.stderr() must contain("Boom from CompletableFuture!")
224217
h.stdout() must not(contain("sadness"))
225218
}
226219

227-
"exit on raising a fatal error inside a flatMap" in {
228-
val h = platform("RaiseFatalErrorFlatMap", List.empty)
220+
"exit on fatal error from async_" in {
221+
val h = platform("FatalErrorFromAsync", List.empty)
229222
h.awaitStatus() mustEqual 1
230-
h.stderr() must contain("Boom!")
223+
h.stderr() must contain("Boom from async!")
231224
h.stdout() must not(contain("sadness"))
232225
}
233226

0 commit comments

Comments
 (0)