Skip to content

Commit b4b127f

Browse files
committed
Fix ghe-host-check unsupported version test for unreleased versions
1 parent 3cef5b8 commit b4b127f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test-ghe-host-check.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ begin_test "ghe-host-check detects unsupported GitHub Enterprise Server versions
7070
#BACKUP_UTILS_VERSION WAS NOT FOUND IN LATEST.JSON, CHECK IF ITS GREATER THAN LAST VERSION
7171
if [ "$(version $bu_major_minor)" -ge "$(version ${keys[-1]})" ]; then
7272
GHE_TEST_REMOTE_VERSION="$bu_major_minor.0" ghe-host-check
73-
# Test most recent 2 versions
73+
# Test most recent version
74+
# Don't test 2 versions back because it fails when we bump the version on
75+
# master after branching for a feature release, before it's released
7476
GHE_TEST_REMOTE_VERSION="${keys[-1]}.0" ghe-host-check
75-
GHE_TEST_REMOTE_VERSION="${keys[-2]}.0" ghe-host-check
7677
fi
7778
else
7879
#BACKUP_UTILS_VERSION WAS FOUND IN LATEST.JSON

0 commit comments

Comments
 (0)