mirror of
https://git.freecumextremist.com/grumbulon/pomme.git
synced 2024-12-22 17:50:42 +00:00
small oops
This commit is contained in:
parent
9412d8ec28
commit
849f5d28fa
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ func (a *accountTest) TestMakeAccount(t *testing.T) {
|
|||
|
||||
form.Add("username", a.username)
|
||||
|
||||
form.Add("password", "test")
|
||||
form.Add("password", a.password)
|
||||
|
||||
if req, err := http.NewRequest(http.MethodPost, "http://localhost:3010/api/create", strings.NewReader(form.Encode())); err == nil {
|
||||
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
|
||||
|
@ -77,7 +77,7 @@ func (a *accountTest) TestLogin(t *testing.T) {
|
|||
|
||||
form.Add("username", a.username)
|
||||
|
||||
form.Add("password", "test")
|
||||
form.Add("password", a.password)
|
||||
|
||||
if req, err := http.NewRequest(http.MethodPost, "http://localhost:3010/api/login", strings.NewReader(form.Encode())); err == nil {
|
||||
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
|
||||
|
|
Loading…
Reference in a new issue