Skip to content

Commit 6f13511

Browse files
committed
Fix tests about endpoint (keep / for git:// and http(s)://)
1 parent 170b59e commit 6f13511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/smart/test_edn.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let test04 =
5050
{
5151
Smart_git.Endpoint.scheme = `Git;
5252
host = `Domain v;
53-
path = "mirage/ocaml.git";
53+
path = "/mirage/ocaml.git";
5454
} ->
5555
Alcotest.(check domain_name) "github.com" v github_com
5656
| Ok v -> Alcotest.failf "Unexpeted Git endpoint: %a" Smart_git.Endpoint.pp v
@@ -63,7 +63,7 @@ let test05 =
6363
{
6464
Smart_git.Endpoint.scheme = `HTTP [];
6565
host = `Domain v;
66-
path = "mirage/ocaml.git";
66+
path = "/mirage/ocaml.git";
6767
} ->
6868
Alcotest.(check domain_name) "github.com" v github_com
6969
| Ok v -> Alcotest.failf "Unexpeted Git endpoint: %a" Smart_git.Endpoint.pp v
@@ -76,7 +76,7 @@ let test06 =
7676
{
7777
Smart_git.Endpoint.scheme = `HTTP [];
7878
host = `Addr v;
79-
path = "mirage/ocaml.git";
79+
path = "/mirage/ocaml.git";
8080
} ->
8181
Alcotest.(check ipaddr) "10.0.0.0" v private_network
8282
| Ok v -> Alcotest.failf "Unexpeted Git endpoint: %a" Smart_git.Endpoint.pp v

0 commit comments

Comments
 (0)