diff options
author | Antonio Jesus Navarro Perez <antnavper@gmail.com> | 2017-05-16 16:08:20 +0200 |
---|---|---|
committer | Antonio Jesus Navarro Perez <antnavper@gmail.com> | 2017-05-16 16:08:20 +0200 |
commit | 7e798fc34d703770e3391de8ecd65edea0d40181 (patch) | |
tree | f51f804ba5526e8990d0c1ce186e239667930600 /plumbing/transport/server/server_test.go | |
parent | 681f24d65046397228b4e4bb4e248fdb1e27f347 (diff) | |
download | go-git-7e798fc34d703770e3391de8ecd65edea0d40181.tar.gz |
transport/server: use Endpoint string representation as a map key.
Two endpoints are not equals between them, even if they were generated using the same url or path.
Diffstat (limited to 'plumbing/transport/server/server_test.go')
-rw-r--r-- | plumbing/transport/server/server_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plumbing/transport/server/server_test.go b/plumbing/transport/server/server_test.go index 2459ab2..6a64674 100644 --- a/plumbing/transport/server/server_test.go +++ b/plumbing/transport/server/server_test.go @@ -53,14 +53,14 @@ func (s *BaseSuite) prepareRepositories(c *C, basic *transport.Endpoint, *basic = ep sto, err := filesystem.NewStorage(fs) c.Assert(err, IsNil) - s.loader[ep] = sto + s.loader[ep.String()] = sto path = "/empty.git" url = fmt.Sprintf("%s://%s", inprocScheme, path) ep, err = transport.NewEndpoint(url) c.Assert(err, IsNil) *empty = ep - s.loader[ep] = memory.NewStorage() + s.loader[ep.String()] = memory.NewStorage() path = "/non-existent.git" url = fmt.Sprintf("%s://%s", inprocScheme, path) |