Skip to content

Commit

Permalink
Fix yandex csrf
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed Sep 1, 2020
1 parent 37b4145 commit 4114326
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class RegionDispatcherTest extends SCExtensionSpec with FlatSpecLike with Sequen
storageSubscribe()
val diff = FolderIndexDiff.createFolders(folder)
testRegion ! RegionDispatcher.WriteIndex(diff)
receiveWhile(5 seconds) {
receiveWhile(25 seconds) {
case RegionDispatcher.WriteIndex.Success(`diff`, result)
result.time shouldBe >(TestUtils.testTimestamp)
assert(FolderIndexDiff.equalsIgnoreOrder(result.folders, folderDiff))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ private[yandex] class YandexWebApi(

private[this] def getCsrfToken() = {
val passport = "https://passport.yandex.ru/auth"
val csrfR = "data-csrf=\"(?<csrf>.*?)\"".r
val csrfR = "\"csrf\":\"(?<csrf>.*?)\"".r
val proccessR = "process_uuid=(?<uuid>[\\w-]+)".r

http
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class ActorSpec extends TestKit(ActorSystem("test")) with ImplicitSende
with Suite with Matchers with ScalaFutures with BeforeAndAfterAll {

override implicit def patienceConfig: PatienceConfig = {
PatienceConfig(5 seconds, 50 millis)
PatienceConfig(10 seconds, 100 millis)
}

override protected def afterAll(): Unit = {
Expand Down

0 comments on commit 4114326

Please sign in to comment.