Skip to content

Commit 3f855d1

Browse files
committed
fixed test
1 parent e0933bb commit 3f855d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Tests/Config.fs

+7-4
Original file line numberDiff line numberDiff line change
@@ -152,18 +152,21 @@ let [<TestCase>] ``Header Transformer``() =
152152
let urlSuffix1 = "suffix1"
153153
let urlSuffix2 = "suffix2"
154154

155-
let request =
155+
let httpSpecial =
156156
let transformWith suffix =
157157
fun (header: Header) ->
158158
let address = header.target.address.Value
159159
{ header with target.address = Some $"{address}{suffix}" }
160-
161160
http {
162-
GET url
163161
config_transformHeader (transformWith urlSuffix1)
164162
config_transformHeader (transformWith urlSuffix2)
165163
}
166164

167-
request.header.target.address
165+
httpSpecial {
166+
GET url
167+
}
168+
|> Request.toRequestAndMessage
169+
|> fst
170+
|> _.header.target.address
168171
|> Option.defaultValue ""
169172
|> should equal $"{url}{urlSuffix1}{urlSuffix2}"

0 commit comments

Comments
 (0)