Obey contract in internal test

This commit is contained in:
Jay McCarthy 2012-09-01 12:48:14 -06:00
parent be72d1475b
commit b68fb6f228

View File

@ -28,14 +28,14 @@
(define-values (conn headers) (make-mock-connection&headers post-data))
(call-with-values
(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)))
(define (get-post-data/raw post-data)
(define-values (conn headers) (make-mock-connection&headers post-data))
(call-with-values
(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)))
(define (test-read-request b)