Skip to content

Commit

Permalink
skip test_fetch_pack_no_side_band_64k if git protocol v2 is used
Browse files Browse the repository at this point in the history
Git protocol v2 implies the side-band-64k capability so this test
is meaningless in that case.
  • Loading branch information
stspdotname committed Jun 5, 2024
1 parent 493d7ef commit dc11b97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/compat/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ def test_incremental_fetch_pack(self):
self.assertDestEqualsSrc()

def test_fetch_pack_no_side_band_64k(self):
if protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH >= 2:
raise SkipTest(
"side-band-64k cannot be disabled with git protocol v2"
)
c = self._client()
c._fetch_capabilities.remove(b"side-band-64k")
with repo.Repo(os.path.join(self.gitroot, "dest")) as dest:
Expand Down

0 comments on commit dc11b97

Please sign in to comment.