mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-16 18:08:21 +00:00
test(utils): allow ephemeral port reuse (#6122)
* test(utils): allow ephemeral port reuse * test(kms): allow any ciphertext prefix
This commit is contained in:
@@ -225,8 +225,6 @@ async fn nothing_readable_leaves_the_bundle_unwrapped() {
|
|||||||
"artifact {} carries the raw on-disk record",
|
"artifact {} carries the raw on-disk record",
|
||||||
artifact.path
|
artifact.path
|
||||||
);
|
);
|
||||||
// A cheap structural check too: an encrypted payload is not JSON.
|
|
||||||
assert_ne!(payload.first(), Some(&b'{'), "artifact {} looks like plaintext JSON", artifact.path);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The manifest itself is not encrypted, so assert directly that it carries
|
// The manifest itself is not encrypted, so assert directly that it carries
|
||||||
|
|||||||
@@ -659,9 +659,6 @@ mod test {
|
|||||||
// Port should be in valid range (u16 max is always <= 65535)
|
// Port should be in valid range (u16 max is always <= 65535)
|
||||||
assert!(port1 > 0);
|
assert!(port1 > 0);
|
||||||
assert!(port2 > 0);
|
assert!(port2 > 0);
|
||||||
|
|
||||||
// Different calls should typically return different ports
|
|
||||||
assert_ne!(port1, port2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user