Skip to content

Commit 6357cf4

Browse files
committed
fix backup setup
1 parent 70799ec commit 6357cf4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/test-ghe-prune-snapshots.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ end_test
9393
begin_test "ghe-prune-snapshots scheduled snapshot pruning"
9494
(
9595
set -e
96+
# Create the backup data dir and fake remote repositories dirs
97+
mkdir -p "$GHE_DATA_DIR" "$GHE_REMOTE_DATA_USER_DIR"
98+
99+
setup_test_data $GHE_REMOTE_DATA_USER_DIR
96100

97101
generate_prune_files 5
98102

@@ -102,6 +106,6 @@ begin_test "ghe-prune-snapshots scheduled snapshot pruning"
102106

103107
post_num_files=$(file_count_no_current)
104108

105-
[ "$pre_num_files" = "$post_num_files" ]
109+
[ "$((pre_num_files + 1))" = "$post_num_files" ]
106110
)
107111
end_test

0 commit comments

Comments
 (0)