Skip to content

Commit 3297511

Browse files
authored
Use the inputs when testing URI conversions in Http4sConversionSpec (#1666)
1 parent 0cba675 commit 3297511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/http4s-kernel/test/src/smithy4s/http4s/kernel/Http4sConversionSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object Http4sConversionSpec extends SimpleIOSuite {
3939
)
4040

4141
http4sToSmithyAndBackUriTest(
42-
uri"example.com",
42+
uri"//example.com",
4343
uri"http://example.com/"
4444
)
4545

@@ -109,8 +109,8 @@ object Http4sConversionSpec extends SimpleIOSuite {
109109
private def http4sToSmithyAndBackUriTest(input: Uri, output: Uri) = {
110110
pureTest(s"URI: http4s to smithy4s and back: $input -> $output") {
111111
assert.eql(
112-
uri"http://localhost/",
113-
fromSmithy4sHttpUri(toSmithy4sHttpUri(uri"http://localhost/"))
112+
output,
113+
fromSmithy4sHttpUri(toSmithy4sHttpUri(input))
114114
)
115115
}
116116
}

0 commit comments

Comments
 (0)