Skip to content

When uploading several files at once the date is missing #1854 #1979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed test cases
  • Loading branch information
ashishkumar468 committed Nov 4, 2018
commit 6c9662efd791aee30e61932e15257ae6ba1819da
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ class ContributionDaoTest {
assertEquals("file", it.filename)
assertEquals(localUri, it.localUri.toString())
assertEquals("image", it.imageUrl)
assertEquals(created, it.timestamp.time)
assertEquals(created, it.dateCreated.time)
assertEquals(STATE_QUEUED, it.state)
assertEquals(222L, it.dataLength)
Expand All @@ -299,7 +298,6 @@ class ContributionDaoTest {
fun createFromCursor_nullableTimestamps() {
createCursor(0L, 0L, false, localUri).let { mc ->
testObject.fromCursor(mc).let {
assertNull(it.timestamp)
assertNull(it.dateCreated)
assertNull(it.dateUploaded)
}
Expand Down Expand Up @@ -342,7 +340,7 @@ class ContributionDaoTest {
source = SOURCE_CAMERA
license = "007"
multiple = isMultiple
timestamp = Date(321L)
dateCreated = Date(System.currentTimeMillis())
width = 640
height = 480 // VGA should be enough for anyone, right?
}
Expand Down