From c4f4c6749ff091767c1d514454bbfb296ee93eba Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 9 Jul 2009 19:02:15 -0500 Subject: [PATCH] Fixing some test failures after url.encoding change --- basis/farkup/farkup-tests.factor | 2 +- basis/http/client/client-tests.factor | 2 ++ basis/http/http-tests.factor | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/basis/farkup/farkup-tests.factor b/basis/farkup/farkup-tests.factor index 7d9c900ec2..863dc522b2 100644 --- a/basis/farkup/farkup-tests.factor +++ b/basis/farkup/farkup-tests.factor @@ -128,7 +128,7 @@ link-no-follow? off [ "

a c

" ] [ "[[a]] [[b|c]]" convert-farkup ] unit-test -[ "

C++

" ] [ "[[C++]]" convert-farkup ] unit-test +[ "

C++

" ] [ "[[C++]]" convert-farkup ] unit-test [ "

<foo>

" ] [ "" convert-farkup ] unit-test diff --git a/basis/http/client/client-tests.factor b/basis/http/client/client-tests.factor index 4f786cb22c..c391b417a9 100644 --- a/basis/http/client/client-tests.factor +++ b/basis/http/client/client-tests.factor @@ -16,6 +16,7 @@ namespaces urls ; { version "1.1" } { cookies V{ } } { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } } + { redirects 10 } } ] [ "http://www.apple.com/index.html" @@ -29,6 +30,7 @@ namespaces urls ; { version "1.1" } { cookies V{ } } { header H{ { "connection" "close" } { "user-agent" "Factor http.client" } } } + { redirects 10 } } ] [ "https://www.amazon.com/index.html" diff --git a/basis/http/http-tests.factor b/basis/http/http-tests.factor index f11aa9eaa2..3fe5e84abd 100644 --- a/basis/http/http-tests.factor +++ b/basis/http/http-tests.factor @@ -33,6 +33,7 @@ blah { header H{ { "some-header" "1; 2" } { "content-length" "4" } { "content-type" "application/octet-stream" } } } { post-data T{ post-data { data "blah" } { content-type "application/octet-stream" } } } { cookies V{ } } + { redirects 10 } } ] [ read-request-test-1 lf>crlf [ @@ -70,6 +71,7 @@ Host: www.sex.com { version "1.1" } { header H{ { "host" "www.sex.com" } } } { cookies V{ } } + { redirects 10 } } ] [ read-request-test-2 lf>crlf [