From 1b37944f8b8eccc2afcfb0f603786209a3b7402d Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 3 Mar 2025 16:03:36 +0100 Subject: [feature] Refactor tokens, allow multiple app redirect_uris (#3849) * [feature] Refactor tokens, allow multiple app redirect_uris * move + tweak handlers a bit * return error for unset oauth2.ClientStore funcs * wrap UpdateToken with cache * panic handling * cheeky little time optimization * unlock on error --- internal/db/bundb/application_test.go | 7 ------- 1 file changed, 7 deletions(-) (limited to 'internal/db/bundb/application_test.go') diff --git a/internal/db/bundb/application_test.go b/internal/db/bundb/application_test.go index d03079f2a..b6b19319c 100644 --- a/internal/db/bundb/application_test.go +++ b/internal/db/bundb/application_test.go @@ -22,7 +22,6 @@ import ( "errors" "reflect" "testing" - "time" "github.com/stretchr/testify/suite" "github.com/superseriousbusiness/gotosocial/internal/db" @@ -45,12 +44,6 @@ func (suite *ApplicationTestSuite) TestGetApplicationBy() { // isEqual checks if 2 application models are equal. isEqual := func(a1, a2 gtsmodel.Application) bool { - // Clear database-set fields. - a1.CreatedAt = time.Time{} - a2.CreatedAt = time.Time{} - a1.UpdatedAt = time.Time{} - a2.UpdatedAt = time.Time{} - return reflect.DeepEqual(a1, a2) } -- cgit v1.2.3