Obey contract in internal test
This commit is contained in:
parent
be72d1475b
commit
b68fb6f228
|
@ -28,14 +28,14 @@
|
||||||
(define-values (conn headers) (make-mock-connection&headers post-data))
|
(define-values (conn headers) (make-mock-connection&headers post-data))
|
||||||
(call-with-values
|
(call-with-values
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(read-bindings&post-data/raw (connection-i-port conn) #"POST" #f headers))
|
(read-bindings&post-data/raw (connection-i-port conn) #"POST" (string->url "http://localhost") headers))
|
||||||
(lambda (f s) f)))
|
(lambda (f s) f)))
|
||||||
|
|
||||||
(define (get-post-data/raw post-data)
|
(define (get-post-data/raw post-data)
|
||||||
(define-values (conn headers) (make-mock-connection&headers post-data))
|
(define-values (conn headers) (make-mock-connection&headers post-data))
|
||||||
(call-with-values
|
(call-with-values
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(read-bindings&post-data/raw (connection-i-port conn) #"POST" #f headers))
|
(read-bindings&post-data/raw (connection-i-port conn) #"POST" (string->url "http://localhost") headers))
|
||||||
(lambda (f s) s)))
|
(lambda (f s) s)))
|
||||||
|
|
||||||
(define (test-read-request b)
|
(define (test-read-request b)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user