Skip to content

Commit 25e4453

Browse files
committed
flip conditional logic
1 parent a5fbdcf commit 25e4453

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/bin/ghe-cluster-each

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ for _ in "$@"; do
2020
done
2121

2222
if [ "$2" == "ghe-version" ]; then
23-
if [ -n "$MATCHING_VERSIONS" ]; then
23+
if [ -z "$DIFFERENT_VERSIONS" ]; then
2424
echo "fake-uuid: GitHub Enterprise Server 3.1.0 lxc 2020-12-16 5e97c07602"
2525
echo "fake-uuid1: GitHub Enterprise Server 3.1.0 lxc 2020-12-16 5e97c07602"
2626
echo "fake-uuid2: GitHub Enterprise Server 3.1.0 lxc 2020-12-16 5e97c07602"

test/test-ghe-restore.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -544,10 +544,6 @@ begin_test "ghe-restore cluster with matching node versions"
544544
setup_remote_cluster
545545
echo "cluster" > "$GHE_DATA_DIR/current/strategy"
546546

547-
# set that versions should match for this test
548-
MATCHING_VERSIONS=1
549-
export MATCHING_VERSIONS
550-
551547
# set as configured, enable maintenance mode and create required directories
552548
setup_maintenance_mode "configured"
553549

@@ -611,6 +607,10 @@ begin_test "ghe-restore cluster with different node versions should fail at ghe-
611607
setup_remote_cluster
612608
echo "cluster" > "$GHE_DATA_DIR/current/strategy"
613609

610+
# set that versions should not match for this test
611+
DIFFERENT_VERSIONS=1
612+
export DIFFERENT_VERSIONS
613+
614614
# set as configured, enable maintenance mode and create required directories
615615
setup_maintenance_mode "configured"
616616

0 commit comments

Comments
 (0)