@@ -544,13 +544,16 @@ mod tests {
544544
545545 #[ tokio:: test]
546546 async fn test_should_commit ( ) -> Result < ( ) > {
547- let lighthouse = Lighthouse :: new ( LighthouseOpt {
548- bind : "[::]:0" . to_string ( ) ,
549- join_timeout_ms : 100 ,
550- min_replicas : 1 ,
551- quorum_tick_ms : 100 ,
552- heartbeat_timeout_ms : 5000 ,
553- } )
547+ let lighthouse = Lighthouse :: new (
548+ "" . to_string ( ) ,
549+ LighthouseOpt {
550+ bind : "[::]:0" . to_string ( ) ,
551+ join_timeout_ms : 100 ,
552+ min_replicas : 1 ,
553+ quorum_tick_ms : 100 ,
554+ heartbeat_timeout_ms : 5000 ,
555+ } ,
556+ )
554557 . await ?;
555558 let lighthouse_fut = tokio:: spawn ( lighthouse. clone ( ) . run ( ) ) ;
556559
@@ -591,13 +594,16 @@ mod tests {
591594
592595 #[ tokio:: test]
593596 async fn test_get_quorum ( ) -> Result < ( ) > {
594- let lighthouse = Lighthouse :: new ( LighthouseOpt {
595- bind : "[::]:0" . to_string ( ) ,
596- join_timeout_ms : 100 ,
597- min_replicas : 1 ,
598- quorum_tick_ms : 100 ,
599- heartbeat_timeout_ms : 5000 ,
600- } )
597+ let lighthouse = Lighthouse :: new (
598+ "" . to_string ( ) ,
599+ LighthouseOpt {
600+ bind : "[::]:0" . to_string ( ) ,
601+ join_timeout_ms : 100 ,
602+ min_replicas : 1 ,
603+ quorum_tick_ms : 100 ,
604+ heartbeat_timeout_ms : 5000 ,
605+ } ,
606+ )
601607 . await ?;
602608 let lighthouse_fut = tokio:: spawn ( lighthouse. clone ( ) . run ( ) ) ;
603609
@@ -646,13 +652,16 @@ mod tests {
646652
647653 #[ tokio:: test]
648654 async fn test_get_quorum_heal_first_step ( ) -> Result < ( ) > {
649- let lighthouse = Lighthouse :: new ( LighthouseOpt {
650- bind : "[::]:0" . to_string ( ) ,
651- join_timeout_ms : 100 ,
652- min_replicas : 2 ,
653- quorum_tick_ms : 100 ,
654- heartbeat_timeout_ms : 5000 ,
655- } )
655+ let lighthouse = Lighthouse :: new (
656+ "" . to_string ( ) ,
657+ LighthouseOpt {
658+ bind : "[::]:0" . to_string ( ) ,
659+ join_timeout_ms : 100 ,
660+ min_replicas : 2 ,
661+ quorum_tick_ms : 100 ,
662+ heartbeat_timeout_ms : 5000 ,
663+ } ,
664+ )
656665 . await ?;
657666 let lighthouse_fut = tokio:: spawn ( lighthouse. clone ( ) . run ( ) ) ;
658667
@@ -718,13 +727,16 @@ mod tests {
718727
719728 #[ tokio:: test]
720729 async fn test_checkpoint_metadata ( ) -> Result < ( ) > {
721- let lighthouse = Lighthouse :: new ( LighthouseOpt {
722- bind : "[::]:0" . to_string ( ) ,
723- join_timeout_ms : 100 ,
724- min_replicas : 1 ,
725- quorum_tick_ms : 100 ,
726- heartbeat_timeout_ms : 5000 ,
727- } )
730+ let lighthouse = Lighthouse :: new (
731+ "" . to_string ( ) ,
732+ LighthouseOpt {
733+ bind : "[::]:0" . to_string ( ) ,
734+ join_timeout_ms : 100 ,
735+ min_replicas : 1 ,
736+ quorum_tick_ms : 100 ,
737+ heartbeat_timeout_ms : 5000 ,
738+ } ,
739+ )
728740 . await ?;
729741 let lighthouse_fut = tokio:: spawn ( lighthouse. clone ( ) . run ( ) ) ;
730742
0 commit comments