Skip to content

Commit

Permalink
Merge pull request #186 from lensesio-dev/feat/log-offset-at-startup
Browse files Browse the repository at this point in the history
fix the unit test
  • Loading branch information
andrewstevenson authored Dec 20, 2024
2 parents 9218deb + 383430d commit 490bbe0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ class EmptyCloudStreamReaderTest extends AnyFunSuiteLike with Matchers {
}
}

test("EmptyCloudStreamReader should throw UnsupportedOperationException for currentRecordIndex") {
test("EmptyCloudStreamReader should return -1 for currentRecordIndex") {
val emptyCloudStreamReader = new EmptyCloudStreamReader(null)
assertThrows[UnsupportedOperationException] {
emptyCloudStreamReader.currentRecordIndex
}
emptyCloudStreamReader.currentRecordIndex shouldBe -1
}

test("EmptyCloudStreamReader should return the location provided in the constructor") {
Expand Down

0 comments on commit 490bbe0

Please sign in to comment.