avito-tech / avito-android

Infrastructure of Avito android
https://avito-tech.github.io/avito-android
MIT License
415 stars 50 forks source link

Thread.sleep(1000) after swipe #1306

Open idyatlov opened 2 years ago

idyatlov commented 2 years ago

I noticed that we are waiting 1000ms after every swipe event. Can it be fixed or at least can the reason for that be documented?

https://github.com/avito-tech/avito-android/blob/7b6e591e936c589e0bc12786d8c633f4980306c6/subprojects/android-test/ui-testing-core/src/main/kotlin/com/avito/android/test/action/ActionsImpl.kt#L33

dsvoronin commented 2 years ago

Hello, Ivan!

Can you run an experiment without this sleep? Does it affect stability? It can easily be an obsolete measure

This sleep call introduced in the very beginning of library development and wasn't tested much, because we in Avito rarely or maybe even never use swipe method in tests.

idyatlov commented 2 years ago

Hello, Dmitriy

I will check it then and put the results here