title: Exception while computing database live data
body: <p>I was wondering why I receive the error:</p>
  <blockquote>
  <p>&quot;java.lang.RuntimeException: exception while computing database live data.&quot;</p>
  </blockquote>
  <p>I usually get this when running this in an androidTest:</p>
  <pre><code>@RunWith(AndroidJUnit4::class)
  class ViewModelTest {
     @get:Rule
     var instantExecutorRule = InstantTaskExecutorRule()
  
     @Test
     @Throws(Exception::class)
     fun tester() = runBlocking {
        ActivityScenario.launch(LoginActivity::class.java)
        Thread.sleep(2000)
     }
  }
  </code></pre>
  <p>Could someone explain why I'm getting this error? I realize that I'm not using any live data at the moment, but was wondering why I'm getting this error in the first place.</p>
  <p>I've used livedata on unit tests and I don't seem to receive this error. Only when I try launching an activity/scenario or do UI testing.</p>