From d4d56c270795629d172f4c44b40da105a9288a4c Mon Sep 17 00:00:00 2001 From: Conrad Hoffmann Date: Tue, 15 Nov 2022 21:25:37 +0100 Subject: [PATCH] carddav: use custom type for context keys --- carddav/carddav_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/carddav/carddav_test.go b/carddav/carddav_test.go index e1a9f3f..3a4b87f 100644 --- a/carddav/carddav_test.go +++ b/carddav/carddav_test.go @@ -27,9 +27,9 @@ CLIENTPIDMAP:1;urn:uuid:53e374d9-337e-4727-8803-a1e9c14e0551 END:VCARD` alicePath = "urn:uuid:4fbe8971-0bc3-424c-9c26-36c3e1eff6b1.vcf" - currentUserPrincipalKey = "test:currentUserPrincipal" - homeSetPathKey = "test:homeSetPath" - addressBookPathKey = "test:addressBookPath" + currentUserPrincipalKey = contextKey("test:currentUserPrincipal") + homeSetPathKey = contextKey("test:homeSetPath") + addressBookPathKey = contextKey("test:addressBookPath") ) func (*testBackend) CurrentUserPrincipal(ctx context.Context) (string, error) {