Skip to content

Commit

Permalink
fixed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Adamczyk committed Dec 29, 2020
1 parent 10138fc commit 7af6e46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions test_runner/src/test/kotlin/ftl/run/GenericTestRunnerTest.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package ftl.run

import flank.common.normalizeLineEnding
import flank.common.startWithNewLine
import flank.common.trimStartLine
import flank.common.withNewLineAtTheEnd
import ftl.args.IArgs
import ftl.run.platform.common.beforeRunMessage
import ftl.shard.Chunk
Expand Down Expand Up @@ -33,7 +31,7 @@ class GenericTestRunnerTest {
val result = createMock(1).beforeRunMessage(
listOf(Chunk(listOf(TestMethod(name = "", time = 0.0))))
).normalizeLineEnding()
assert(result, " 1 test / 1 shard".withNewLineAtTheEnd().startWithNewLine())
assert(result.trim(), " 1 test / 1 shard".trim())
}

@Test
Expand Down
2 changes: 0 additions & 2 deletions test_runner/src/test/kotlin/ftl/util/ProgressBarTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class ProgressBarTest {
runWithProgress(
startMessage = "TEST",
action = { action.run() },
onSuccess = {},
onError = { onError.run() }
)

Expand All @@ -76,7 +75,6 @@ class ProgressBarTest {
action.run()
throw Exception()
},
onSuccess = {},
onError = { onError.run() }
)

Expand Down

0 comments on commit 7af6e46

Please # to comment.