diff options
author | lain <lain@soykaf.club> | 2020-08-04 15:28:41 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-04 15:28:41 +0200 |
commit | 878c7f3f309aa5aaa9eababc2c863248dd4420bb (patch) | |
tree | e2c76471b95ee9460989aeedf4ebfa4843b11cba /test/captcha_test.exs | |
parent | 0f088d8ce35150d7baa0591a25c831fce0181239 (diff) | |
parent | 28584bb2241c600fc6150fdae49b1eea6bd420e0 (diff) | |
download | pleroma-878c7f3f309aa5aaa9eababc2c863248dd4420bb.tar.gz pleroma-878c7f3f309aa5aaa9eababc2c863248dd4420bb.zip |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into features/poll-validation
Diffstat (limited to 'test/captcha_test.exs')
-rw-r--r-- | test/captcha_test.exs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/captcha_test.exs b/test/captcha_test.exs index 1ab9019ab..1b9f4a12f 100644 --- a/test/captcha_test.exs +++ b/test/captcha_test.exs @@ -41,7 +41,8 @@ defmodule Pleroma.CaptchaTest do answer_data: answer, token: ^token, url: ^url, - type: :kocaptcha + type: :kocaptcha, + seconds_valid: 300 } = new assert Kocaptcha.validate(token, "7oEy8c", answer) == :ok @@ -56,7 +57,8 @@ defmodule Pleroma.CaptchaTest do answer_data: answer, token: token, type: :native, - url: "data:image/png;base64," <> _ + url: "data:image/png;base64," <> _, + seconds_valid: 300 } = new assert is_binary(answer) |