Fixed failing server use case tests
/ docker (push) Successful in 1m6s Details

This commit is contained in:
Maxim Lebedev 2023-12-24 07:54:24 +06:00
parent f50889d95f
commit eb331889bb
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@ func TestDo(t *testing.T) {
expect := &domain.Server{ expect := &domain.Server{
Headers: []domain.Header{{ Headers: []domain.Header{{
Path: "/**", Path: "/**",
Headers: map[string]string{ Values: map[string]string{
"Link": `<https://auth.example.com/>; rel="indieauth-metadata", ` + "Link": `<https://auth.example.com/>; rel="indieauth-metadata", ` +
`<https://pub.example.com/>; rel="micropub"`, `<https://pub.example.com/>; rel="micropub"`,
"X-Koroko": "Ya-ha-ha!", "X-Koroko": "Ya-ha-ha!",
}, },
}, { }, {
Path: "/foo/bar", Path: "/foo/bar",
Headers: map[string]string{ Values: map[string]string{
"X-Testing": `sample-text`, "X-Testing": `sample-text`,
}, },
}}, }},