diff --git a/internal/api/api_test.go b/internal/api/api_test.go index 1e61007..fd0bf2c 100644 --- a/internal/api/api_test.go +++ b/internal/api/api_test.go @@ -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")