From 849f5d28faaa7377ff2abfed6a62609c22a35679 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Sat, 28 Jan 2023 23:41:53 -0500 Subject: [PATCH] small oops --- internal/api/api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")