Skip to content

Commit bdeef49

Browse files
committed
tools: fix ./v -d network test cmd/tools/vpm
1 parent 44a4975 commit bdeef49

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/tools/vpm/install_version_test.v

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ fn test_install_from_git_url_with_version_tag() {
8888
res = cmd_fail(@LOCATION, '${vexe} install -f ${url}@${tag}')
8989
// Install invalid version verbose.
9090
res = cmd_fail(@LOCATION, '${vexe} install -f -v ${url}@${tag}')
91-
assert res.output.contains('Could not find remote branch ${tag} to clone.'), res.output
91+
not_found := res.output.contains('Could not find remote branch ${tag} to clone.')
92+
|| res.output.contains('Remote branch ${tag} not found')
93+
assert not_found, res.output
9294
// Install from GitLab.
9395
url = 'https://gitlab.com/tobealive/webview'
9496
tag = 'v0.6.0'

0 commit comments

Comments
 (0)