Skip to content

Commit a26209a

Browse files
committed
test/test-io.hs: Adapt to exception type change
1 parent 58faf59 commit a26209a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test-io.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ requestTest = describe "Request:" $ do
143143
-- Getting a TlsException shows that we have successfully upgraded
144144
-- from HTTP to HTTPS. Its not possible to ignore this failure
145145
-- because its made by the http-conduit inside the proxy.
146-
BS.take 13 (resultBS result) `shouldBe` "HttpException"
146+
BS.takeWhile (/= ' ') (resultBS result) `shouldBe` "TlsExceptionHostPort"
147147
it "Can provide a proxy Response." $
148148
withTestProxy proxySettingsProxyResponse $ \ testProxyPort -> do
149149
req <- addTestProxy testProxyPort <$> mkGetRequest Http "/whatever"

0 commit comments

Comments
 (0)