Office Hours — Today, March 14

Tuesday, March 12

Mar 14
8:55 AM
Mark M.
has entered the room
Mark M.
turned on guest access
9:20 AM
Andy
has entered the room
Mark M.
hello, Andy!
how can I help you today?
though if your question is "what will the 'tasty treat' be for Android Q", I have no idea
9:25 AM
Andy
hey mark, is there a way to debug a unit test in android studio now? I switched to using kotlin on android studio 3.3 and it doesnt hit any breakpoints though it does throw an error indicating that the function was run
Mark M.
unit tests have been acting strange for a year or so
Andy
yeah desserts that start with Q please
Mark M.
technically, they don't have to be desserts, but we're short on any sort of foods that being with Q...
in terms of the unit tests, I couldn't get them to run reliably in Android Studio for much of the latter half of last year, let alone get them working in a debugger
Andy
ok thanks
Mark M.
I settled for running the Gradle tasks from the command line
Andy
ok i'll check that out
all the android codenames have been sweets though
Mark M.
I haven't worked with unit tests much in AS 3.3 yet, so I can't comment on any new and exciting problems
Andy
haha
Mark M.
"tasty treats" is the official phrase for the scope of the Android release code names
but Q is gonna be a problem
9:30 AM
Andy
ah i didnt know that
i ran through the gamut and noticed they were all sweets so
quiche
Mark M.
tasty, but "treat" would be a stretch, and awfully similar to pie
Andy
qaramel lol
back to android, um have you run into "java.lang.AssertionError: Not completed (latch = 1, values = 0, errors = 0, completions = 0, timeout!
Mark M.
sounds like a CountDownLatch didn't get released
is this coming directly from your test code? your app code? framework code? something else?
Andy
google says that happens when running a test on different threads and the observer didnt have time to receive the emission? This is thrown from my unit test
9:35 AM
Mark M.
what sort of observer?
Andy
rxjava 2 observer
Mark M.
I don't recall getting that with RxJava 2 unit tests, though there are a variety of ways of implementing such tests, so perhaps mine used something else
Andy
cool
9:40 AM
Andy
thank you
Andy
has left the room
9:55 AM
Mark M.
turned off guest access

Tuesday, March 12

 

Office Hours

People in this transcript

  • Andy
  • Mark Murphy