fix account switching (#4636)
closes #4631 closes #4629 and other weirdness introduced in Tusky 26.1. I did a lot of testing on 2 physical devices and multiple emulators. It definitely is better than before, but probably still not perfect.
This commit is contained in:
parent
74d479c3dc
commit
31e4f08966
8 changed files with 121 additions and 145 deletions
|
|
@ -17,7 +17,7 @@ import org.junit.Test
|
|||
import retrofit2.Retrofit
|
||||
import retrofit2.converter.moshi.MoshiConverterFactory
|
||||
|
||||
class RetrofitApiTest {
|
||||
class ApiFactoryTest {
|
||||
|
||||
private val mockWebServer = MockWebServer()
|
||||
private val okHttpClient = OkHttpClient.Builder().build()
|
||||
|
|
@ -68,7 +68,7 @@ class RetrofitApiTest {
|
|||
|
||||
val account = AccountEntity(
|
||||
id = 1,
|
||||
domain = "test.domain",
|
||||
domain = mockWebServer.hostName,
|
||||
accessToken = "fakeToken",
|
||||
clientId = "fakeId",
|
||||
clientSecret = "fakeSecret",
|
||||
Loading…
Add table
Add a link
Reference in a new issue