Add safe call to WorkInfo

pull/1755/head
Don Turner 1 week ago
parent 494d55af4c
commit 238461d428

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

Loading…
Cancel
Save