summaryrefslogtreecommitdiffstats
path: root/integrations/user_test.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-12-04 07:20:30 +0100
committerGitHub <noreply@github.com>2020-12-04 08:20:30 +0200
commit48a3bb7a32bb4e7e5a31cfeb4ca324621c417527 (patch)
tree8cab01bb2a7b48c323c11ddcd574f67283a0468c /integrations/user_test.go
parent3512c7e40f0b06f9f495a919e0d4925e5688e2da (diff)
downloadgitea-48a3bb7a32bb4e7e5a31cfeb4ca324621c417527.tar.gz
gitea-48a3bb7a32bb4e7e5a31cfeb4ca324621c417527.zip
User Settings: Ignore empty language codes & validate (#13755)
Diffstat (limited to 'integrations/user_test.go')
-rw-r--r--integrations/user_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/integrations/user_test.go b/integrations/user_test.go
index 999a182bfd..199d5e242f 100644
--- a/integrations/user_test.go
+++ b/integrations/user_test.go
@@ -30,7 +30,7 @@ func TestRenameUsername(t *testing.T) {
"_csrf": GetCSRF(t, session, "/user/settings"),
"name": "newUsername",
"email": "user2@example.com",
- "language": "en-us",
+ "language": "en-US",
})
session.MakeRequest(t, req, http.StatusFound)
@@ -100,7 +100,7 @@ func TestRenameReservedUsername(t *testing.T) {
"_csrf": GetCSRF(t, session, "/user/settings"),
"name": reservedUsername,
"email": "user2@example.com",
- "language": "en-us",
+ "language": "en-US",
})
resp := session.MakeRequest(t, req, http.StatusFound)