summaryrefslogtreecommitdiff
path: root/src/scm/webid-oidc/testing.scm
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2020-12-02 09:31:05 +0100
committerVivien Kraus <vivien@planete-kraus.eu>2021-06-05 16:15:35 +0200
commit9e4ffd421e33679ab4ae7a3e605dd64d8ff693e1 (patch)
treeedc8d6cc7e925c4917444a014236ed8c683615cc /src/scm/webid-oidc/testing.scm
parent8bf760384074e90dcc27c10d2c688cb5ac3dfa2f (diff)
Add the refresh token code
Diffstat (limited to 'src/scm/webid-oidc/testing.scm')
-rw-r--r--src/scm/webid-oidc/testing.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scm/webid-oidc/testing.scm b/src/scm/webid-oidc/testing.scm
index d4b7f4d..aecb2a3 100644
--- a/src/scm/webid-oidc/testing.scm
+++ b/src/scm/webid-oidc/testing.scm
@@ -5,8 +5,10 @@
;; This module is used only when running tests.
(define-public (with-test-environment test-name f)
- (let ((cache-dir (format #f "tests/~a.cache" test-name)))
+ (let ((cache-dir (format #f "tests/~a.cache" test-name))
+ (data-dir (format #f "tests/~a.home" test-name)))
(setenv "XDG_CACHE_HOME" cache-dir)
+ (setenv "XDG_DATA_HOME" data-dir)
(catch #t
(lambda () (mkdir cache-dir))
(lambda err #t))