@@ -1507,16 +1507,8 @@ mod test {
15071507 2 ,
15081508 "Should still have 2 components in state"
15091509 ) ;
1510- assert_component (
1511- & components,
1512- & component_1_id,
1513- & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ,
1514- ) ;
1515- assert_component (
1516- & components,
1517- & component_2_id,
1518- & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ,
1519- ) ;
1510+ assert_component ( & components, component_1_id, & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ) ;
1511+ assert_component ( & components, component_2_id, & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ) ;
15201512
15211513 /***********************************************************/
15221514 /************** Component Scale Down Tests *****************/
@@ -1543,12 +1535,8 @@ mod test {
15431535 2 ,
15441536 "Should still have 2 components in state"
15451537 ) ;
1546- assert_component ( & components, & component_1_id, & [ ( host2_id, 2 ) ] ) ;
1547- assert_component (
1548- & components,
1549- & component_2_id,
1550- & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ,
1551- ) ;
1538+ assert_component ( & components, component_1_id, & [ ( host2_id, 2 ) ] ) ;
1539+ assert_component ( & components, component_2_id, & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ) ;
15521540
15531541 let host = store
15541542 . get :: < Host > ( lattice_id, host2_id)
@@ -1572,11 +1560,7 @@ mod test {
15721560 let components = store. list :: < Component > ( lattice_id) . await . unwrap ( ) ;
15731561 assert_eq ! ( components. len( ) , 1 , "Should only have 1 component in state" ) ;
15741562 // Double check the the old one is still ok
1575- assert_component (
1576- & components,
1577- & component_2_id,
1578- & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ,
1579- ) ;
1563+ assert_component ( & components, component_2_id, & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ) ;
15801564
15811565 /***********************************************************/
15821566 /******************* Provider Stop Tests *******************/
@@ -1735,11 +1719,7 @@ mod test {
17351719 // Double check providers and components are the same
17361720 let components = store. list :: < Component > ( lattice_id) . await . unwrap ( ) ;
17371721 assert_eq ! ( components. len( ) , 1 , "Should only have 1 component in state" ) ;
1738- assert_component (
1739- & components,
1740- & component_2_id,
1741- & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ,
1742- ) ;
1722+ assert_component ( & components, component_2_id, & [ ( host1_id, 2 ) , ( host2_id, 2 ) ] ) ;
17431723
17441724 let providers = store. list :: < Provider > ( lattice_id) . await . unwrap ( ) ;
17451725 assert_eq ! ( providers. len( ) , 2 , "Should still have 2 providers in state" ) ;
@@ -1774,7 +1754,7 @@ mod test {
17741754 // Double check providers and components are the same
17751755 let components = store. list :: < Component > ( lattice_id) . await . unwrap ( ) ;
17761756 assert_eq ! ( components. len( ) , 1 , "Should only have 1 component in state" ) ;
1777- assert_component ( & components, & component_2_id, & [ ( host2_id, 2 ) ] ) ;
1757+ assert_component ( & components, component_2_id, & [ ( host2_id, 2 ) ] ) ;
17781758
17791759 let providers = store. list :: < Provider > ( lattice_id) . await . unwrap ( ) ;
17801760 assert_eq ! ( providers. len( ) , 1 , "Should now have 1 provider in state" ) ;
@@ -1857,7 +1837,7 @@ mod test {
18571837 ] )
18581838 . host_id ( host_id. into ( ) )
18591839 . providers ( vec ! [ ProviderDescription :: builder( )
1860- . id( & provider_id)
1840+ . id( provider_id)
18611841 . revision( 0 )
18621842 . build( )
18631843 . expect( "failed to build provider description" ) ] )
@@ -1893,7 +1873,7 @@ mod test {
18931873 labels : HashMap :: default ( ) ,
18941874 issuer : "" . to_string ( ) ,
18951875 providers : vec ! [ ProviderDescription :: builder( )
1896- . id( & provider_id)
1876+ . id( provider_id)
18971877 . revision( 0 )
18981878 . build( )
18991879 . expect( "failed to build provider description" ) ] ,
0 commit comments