]> source.dussan.org Git - gitea.git/commit
Remove external API calls in `TestPassword` (#30716)
authorsilverwind <me@silverwind.io>
Thu, 2 May 2024 14:43:23 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Thu, 2 May 2024 14:43:23 +0000 (14:43 +0000)
commit9235442ba58524c8d12ae54865d583acfa1f439d
treebcd55cbf08967df6117ccaab3c3544beca5d4dff
parentcb9e1a3ff66f24f89d99f839376e304161c12962
Remove external API calls in `TestPassword` (#30716)

The test had a dependency on `https://api.pwnedpasswords.com` which
caused many failures on CI recently:

```
--- FAIL: TestPassword (2.37s)
    pwn_test.go:41: Get "https://api.pwnedpasswords.com/range/e6b6a": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
FAIL
coverage: 82.9% of statements
```
go.mod
go.sum
modules/auth/password/pwn/pwn_test.go