We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c03d90c commit e0baecfCopy full SHA for e0baecf
test/test_remote.py
@@ -39,7 +39,6 @@
39
REMOTE_FETCHSPEC_SRC = 'refs/heads/*'
40
REMOTE_FETCHSPEC_DST = 'refs/remotes/origin/*'
41
REMOTE_REPO_OBJECTS = 30
42
-REMOTE_REPO_BYTES = 2758
43
REMOTE_FETCHTEST_FETCHSPECS = ["refs/tags/v1.13.2"]
44
REMOTE_REPO_FETCH_ALL_OBJECTS = 13276
45
REMOTE_REPO_FETCH_HEAD_COMMIT_OBJECTS = 238
@@ -215,7 +214,8 @@ def test_remote_refcount(testrepo):
215
214
def test_fetch(emptyrepo):
216
remote = emptyrepo.remotes[0]
217
stats = remote.fetch()
218
- assert stats.received_bytes == REMOTE_REPO_BYTES
+ assert stats.received_bytes > 2700
+ assert stats.received_bytes < 2800
219
assert stats.indexed_objects == REMOTE_REPO_OBJECTS
220
assert stats.received_objects == REMOTE_REPO_OBJECTS
221
0 commit comments