Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Apr 17, 2024
1 parent 402f8b8 commit fad6e29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/shell/bazel/starlark_repository_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,10 @@ genrule(
)
EOF

bazel build --noenable_bzlmod --repository_disable_download //:it > "${TEST_log}" 2>&1 \
# Ensure that all Bzlmod-related downloads have happened before disabling
# downloads.
bazel mod deps || fail "Failed to cache Bazel modules"
bazel build --repository_disable_download //:it > "${TEST_log}" 2>&1 \
&& fail "Expected failure" || :
expect_log "Failed to download repository @.*: download is disabled"
}
Expand Down

0 comments on commit fad6e29

Please sign in to comment.