Skip to content

Commit e480e39

Browse files
committed
Fix test/test-ghe-backup-config.sh
1 parent 3b58d8f commit e480e39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test-ghe-backup-config.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ end_test
8989
begin_test "ghe-backup-config ssh_port_part"
9090
(
9191
set -e
92-
[ "$(ssh_port_part 'github.example.com')" = "22" ]
93-
[ "$(ssh_port_part 'github.example.com:22')" = "22" ]
94-
[ "$(ssh_port_part 'github.example.com:5000')" = "5000" ]
95-
[ "$(ssh_port_part '[email protected]:5000')" = "5000" ]
92+
[ "$(ssh_port_part 'github.example.com')" = "122" ]
93+
[ ! "$(ssh_port_part 'github.example.com:22' 2>/dev/null)" ]
94+
[ ! "$(ssh_port_part 'github.example.com:5000' 2>/dev/null)" ]
95+
[ "$(ssh_port_part '[email protected]:122')" = "122" ]
9696
)
9797
end_test
9898

0 commit comments

Comments
 (0)