summaryrefslogtreecommitdiff
path: root/internal/api/api_test.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-07-08 09:18:10 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-07-17 14:00:03 +0000
commitdd61cd1f935930850986510675a2c37f0e85ef27 (patch)
treec90a058fec98046e802fdd8c1f37b9289118ff77 /internal/api/api_test.go
parentcb8e2a5ae27aa34f2a9ad21469538403274e3b3e (diff)
Client + API: Mark organizations expired *before* processing url
Diffstat (limited to 'internal/api/api_test.go')
-rw-r--r--internal/api/api_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/api_test.go b/internal/api/api_test.go
index 5de1d7b..397dd3c 100644
--- a/internal/api/api_test.go
+++ b/internal/api/api_test.go
@@ -196,8 +196,8 @@ func createTestAPI(t *testing.T, tok *eduoauth.Token, gt []string, hps []test.Ha
Type: server.TypeCustom,
BaseWK: serv.URL,
BaseAuthWK: serv.URL,
- ProcessAuth: func(in string) string {
- return in
+ ProcessAuth: func(ctx context.Context, in string) (string, error) {
+ return in, nil
},
DisableAuthorize: false,
Transport: servc.Client.Transport,