File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
crates/stackable-operator/src/builder/pod Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -540,11 +540,12 @@ mod tests {
540
540
assert_eq ! ( long_container_name. len( ) , 64 ) ; // 63 characters is the limit for container names
541
541
let result = ContainerBuilder :: new ( long_container_name) ;
542
542
if let Error :: InvalidContainerName {
543
- container_name,
544
- source,
545
- } = result
543
+ container_name,
544
+ source,
545
+ } = result
546
546
. err ( )
547
- . expect ( "Container name exceeding 63 characters should cause an error" ) {
547
+ . expect ( "Container name exceeding 63 characters should cause an error" )
548
+ {
548
549
assert_eq ! ( container_name, long_container_name) ;
549
550
assert_eq ! (
550
551
source. to_string( ) ,
@@ -614,11 +615,12 @@ mod tests {
614
615
expected_err_contains : & str ,
615
616
) {
616
617
if let Error :: InvalidContainerName {
617
- container_name : _,
618
- source,
619
- } = result
618
+ container_name : _,
619
+ source,
620
+ } = result
620
621
. err ( )
621
- . expect ( "Container name exceeding 63 characters should cause an error" ) {
622
+ . expect ( "Container name exceeding 63 characters should cause an error" )
623
+ {
622
624
assert ! ( dbg!( source. to_string( ) ) . contains( dbg!( expected_err_contains) ) ) ;
623
625
}
624
626
}
You can’t perform that action at this time.
0 commit comments