From 0ebd162af02c779ce98d7da4cc1b83dd475538d6 Mon Sep 17 00:00:00 2001 From: CPunch Date: Mon, 4 Dec 2023 20:40:48 -0600 Subject: [PATCH] login_test: minor cleanup --- login/login_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/login/login_test.go b/login/login_test.go index 358ef7e..99a5ffa 100644 --- a/login/login_test.go +++ b/login/login_test.go @@ -97,7 +97,6 @@ func TestMain(m *testing.M) { func TestLoginSuccSequence(t *testing.T) { is := is.New(t) - ctx, cancel := context.WithCancel(context.Background()) defer cancel() @@ -125,14 +124,12 @@ func TestLoginSuccSequence(t *testing.T) { is.Equal(resp.ICharCount, int8(0)) // should have 0 characters // verify account was created - acc, err := testDB.TryLogin("testLoginSequence", "test") - is.NoErr(err) // GetAccount() should not return an error - is.Equal(acc.Login, "testLoginSequence") // should have the same ID + _, err = testDB.TryLogin("testLoginSequence", "test") + is.NoErr(err) // TryLogin() should not return an error } func TestLoginFailSequence(t *testing.T) { is := is.New(t) - ctx, cancel := context.WithCancel(context.Background()) defer cancel()