Add safe call to WorkInfo (again)

pull/1755/head
Don Turner 6 days ago
parent 238461d428
commit 5820b0e86c

@ -64,7 +64,7 @@ class SyncWorkerTest {
val preRunWorkInfo = workManager.getWorkInfoById(request.id).get() val preRunWorkInfo = workManager.getWorkInfoById(request.id).get()
// Assert // Assert
assertEquals(WorkInfo.State.ENQUEUED, preRunWorkInfo.state) assertEquals(WorkInfo.State.ENQUEUED, preRunWorkInfo?.state)
// Tells the testing framework that the constraints have been met // Tells the testing framework that the constraints have been met
testDriver.setAllConstraintsMet(request.id) testDriver.setAllConstraintsMet(request.id)

Loading…
Cancel
Save