Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Commit

Permalink
Simplify URL arbitrary even further to guarantee that it's parseable
Browse files Browse the repository at this point in the history
  • Loading branch information
kananb committed Oct 11, 2023
1 parent 5a71ded commit c68b673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/onefuzz-task/src/config_test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub mod arbitraries {
fn arb_url()(
// Don't use this for any url that isn't just being used for a string comparison (as for the config tests)
// basically all that matters here is that we generate a parsable url
url in r"https?://(www\.)?[-a-zA-Z0-9]{1,256}\.com"
url in r"https?://(www\.)?[a-zA-Z0-9]{1,64}\.com"
) -> Url {
match Url::parse(&url) {
Ok(url) => url,
Expand Down

0 comments on commit c68b673

Please sign in to comment.