File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -152,18 +152,21 @@ let [<TestCase>] ``Header Transformer``() =
152
152
let urlSuffix1 = " suffix1"
153
153
let urlSuffix2 = " suffix2"
154
154
155
- let request =
155
+ let httpSpecial =
156
156
let transformWith suffix =
157
157
fun ( header : Header ) ->
158
158
let address = header.target.address.Value
159
159
{ header with target.address = Some $" {address}{suffix}" }
160
-
161
160
http {
162
- GET url
163
161
config_ transformHeader ( transformWith urlSuffix1)
164
162
config_ transformHeader ( transformWith urlSuffix2)
165
163
}
166
164
167
- request.header.target.address
165
+ httpSpecial {
166
+ GET url
167
+ }
168
+ |> Request.toRequestAndMessage
169
+ |> fst
170
+ |> _. header.target.address
168
171
|> Option.defaultValue " "
169
172
|> should equal $" {url}{urlSuffix1}{urlSuffix2}"
You can’t perform that action at this time.
0 commit comments