Skip to content

Commit 32df8b7

Browse files
committed
fix: revision id test
1 parent 05ae07b commit 32df8b7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

vectorctl-cli/src/commands/migrate.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,12 @@ mod tests {
155155
use tokio_stream::{StreamExt, wrappers::ReadDirStream};
156156

157157
fn id_re() -> Regex {
158-
Regex::new(r"^[A-Za-z0-9_]{11}$").unwrap()
158+
Regex::new(r"^[A-Za-z]{1,11}$").unwrap()
159159
}
160160

161161
#[test]
162162
fn id_format() {
163163
let id = revision_id().unwrap();
164-
assert_eq!(id.len(), 11);
165164
assert!(id_re().is_match(&id));
166165
}
167166

@@ -205,7 +204,6 @@ mod tests {
205204
#[test]
206205
fn prop_base64(buf in any::<[u8;8]>()) {
207206
let enc = URL_SAFE_NO_PAD.encode(buf).chars().filter(|c| c.is_alphabetic()).collect::<String>();
208-
prop_assert_eq!(enc.len(), 11);
209207
prop_assert!(id_re().is_match(&enc));
210208
}
211209
}

0 commit comments

Comments
 (0)