Skip to content

Commit 1d8454d

Browse files
committed
More tests
1 parent d5e7492 commit 1d8454d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/streaming/RateSourceSuite.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ class RateSourceSuite extends StreamTest {
7676
test("valueAtSecond") {
7777
import RateStreamSource._
7878

79+
assert(valueAtSecond(seconds = 0, rowsPerSecond = 5, rampUpTimeSeconds = 0) === 0)
80+
assert(valueAtSecond(seconds = 1, rowsPerSecond = 5, rampUpTimeSeconds = 0) === 5)
81+
7982
assert(valueAtSecond(seconds = 0, rowsPerSecond = 5, rampUpTimeSeconds = 2) === 0)
8083
assert(valueAtSecond(seconds = 1, rowsPerSecond = 5, rampUpTimeSeconds = 2) === 1)
8184
assert(valueAtSecond(seconds = 2, rowsPerSecond = 5, rampUpTimeSeconds = 2) === 3)

0 commit comments

Comments
 (0)