Skip to content

Commit d9e24ce

Browse files
jonathantanmygitster
authored andcommitted
t5300: move --window clamp test next to unclamped
A subsequent commit will change the behavior of "git index-pack --promisor", which is exercised in "build pack index for an existing pack", causing the unclamped and clamped versions of the --window test to exhibit different behavior. Move the clamp test closer to the unclamped test that it references. Signed-off-by: Jonathan Tan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 78995ff commit d9e24ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

t/t5300-pack-object.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ test_expect_success 'pack without delta' '
156156
check_deltas stderr = 0
157157
'
158158

159+
test_expect_success 'negative window clamps to 0' '
160+
git pack-objects --progress --window=-1 neg-window <obj-list 2>stderr &&
161+
check_deltas stderr = 0
162+
'
163+
159164
test_expect_success 'pack-objects with bogus arguments' '
160165
test_must_fail git pack-objects --window=0 test-1 blah blah <obj-list
161166
'
@@ -630,11 +635,6 @@ test_expect_success 'prefetch objects' '
630635
test_line_count = 1 donelines
631636
'
632637

633-
test_expect_success 'negative window clamps to 0' '
634-
git pack-objects --progress --window=-1 neg-window <obj-list 2>stderr &&
635-
check_deltas stderr = 0
636-
'
637-
638638
for hash in sha1 sha256
639639
do
640640
test_expect_success "verify-pack with $hash packfile" '

0 commit comments

Comments
 (0)