diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-27 20:23:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 12:23:37 +0000 |
commit | d3cdef88ad4784c19afcf24fbf62fccb03f456ba (patch) | |
tree | 18e3a95c19b898202515227352e05b5ea2675c5b /tests | |
parent | dd301cae1c40c9ef2805bd13af6b09a81ff4f5d7 (diff) | |
download | gitea-d3cdef88ad4784c19afcf24fbf62fccb03f456ba.tar.gz gitea-d3cdef88ad4784c19afcf24fbf62fccb03f456ba.zip |
Add some tests to clarify the "must-change-password" behavior (#30693)
Follow #30472:
When a user is created by command line `./gitea admin user create`:
Old behavior before #30472: the first user (admin or non-admin) doesn't
need to change password.
Revert to the old behavior before #30472
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_utils.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/test_utils.go b/tests/test_utils.go index 50049e73f0..66a287ecad 100644 --- a/tests/test_utils.go +++ b/tests/test_utils.go @@ -46,7 +46,6 @@ func InitTest(requireGitea bool) { // TODO: Speedup tests that rely on the event source ticker, confirm whether there is any bug or failure. // setting.UI.Notification.EventSourceUpdateTime = time.Second - setting.IsInTesting = true setting.AppWorkPath = giteaRoot setting.CustomPath = filepath.Join(setting.AppWorkPath, "custom") if requireGitea { |