summaryrefslogtreecommitdiff
path: root/tests/dpop-proof-wrong-htm.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dpop-proof-wrong-htm.scm')
-rw-r--r--tests/dpop-proof-wrong-htm.scm11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/dpop-proof-wrong-htm.scm b/tests/dpop-proof-wrong-htm.scm
index 1b30161..204e87a 100644
--- a/tests/dpop-proof-wrong-htm.scm
+++ b/tests/dpop-proof-wrong-htm.scm
@@ -1,4 +1,4 @@
-;; webid-oidc, implementation of the Solid specification
+;; disfluid, implementation of the Solid specification
;; Copyright (C) 2020, 2021 Vivien Kraus
;; This program is free software: you can redistribute it and/or modify
@@ -38,8 +38,11 @@
#:htu (string->uri "https://example.com/res#frag"))))
(with-exception-handler
(lambda (error)
- (unless ((record-predicate &dpop-method-mismatch)
- ((record-accessor &cannot-decode-dpop-proof 'cause) error))
+ (unless (and (dpop-method-mismatch? error)
+ (eq? (dpop-method-mismatch-advertised error)
+ 'POST)
+ (eq? (dpop-method-mismatch-actual error)
+ 'GET))
(raise-exception error)))
(lambda ()
(parameterize ((p:current-date 10))
@@ -49,4 +52,4 @@
cnf))
(exit 2))
#:unwind? #t
- #:unwind-for-type &cannot-decode-dpop-proof)))
+ #:unwind-for-type &dpop-method-mismatch)))