Skip to content

Commit 7c90368

Browse files
mjcheethamdscho
authored andcommitted
t7900-maintenance.sh: reset config between tests
Tests in t7900 assume the state of the `maintenance.strategy` config setting; set/unset by previous tests. Correct this by explictly unsetting and re-setting the config at the start of the tests. Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>
1 parent d2f0788 commit 7c90368

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

t/t7900-maintenance.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ test_expect_success 'invalid --schedule value' '
655655
'
656656

657657
test_expect_success '--schedule inheritance weekly -> daily -> hourly' '
658+
git config --unset maintenance.strategy &&
658659
git config maintenance.loose-objects.enabled true &&
659660
git config maintenance.loose-objects.schedule hourly &&
660661
git config maintenance.commit-graph.enabled true &&

0 commit comments

Comments
 (0)