Add safe call to WorkInfo

pull/1755/head
Don Turner 7 days ago
parent 494d55af4c
commit 238461d428

@ -70,6 +70,6 @@ class SyncWorkerTest {
testDriver.setAllConstraintsMet(request.id)
val postRequirementWorkInfo = workManager.getWorkInfoById(request.id).get()
assertEquals(WorkInfo.State.RUNNING, postRequirementWorkInfo.state)
assertEquals(WorkInfo.State.RUNNING, postRequirementWorkInfo?.state)
}
}

Loading…
Cancel
Save