Finally figured this out.
Each thread was spawning a separate DaoSession
. Each thread, since they are in the same process, needs to be using the same DaoSession
.
This does concern me though, i am wondering how this will work when we attempt to do this same test but having the threads on different processes.