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-18 16:52:27 +0200
commitfb6593ab973e837fa936222b65f24acf26f776f0 (patch)
tree177be1a8117a6b81ed949a19b902a25aa910a69c /src/scm/webid-oidc/testing.scm
parentb074df926f069081bdf6c75ced47d7409abdc7b6 (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))