@@ -570,13 +570,13 @@ func TestProvision_NoReprovisioning_WhenNoAvailableKing(t *testing.T) {
570570}
571571
572572func newTestKingWithLocation (
573- host , ports string , bindPort int , shuttingDown bool , location string ,
573+ host , ports string , bindPort int , location string ,
574574) state.King {
575575 return state.King {
576576 BindPort : bindPort ,
577577 Host : host ,
578578 Ports : ports ,
579- ShuttingDown : shuttingDown ,
579+ ShuttingDown : false ,
580580 Beat : 0 ,
581581 Location : location ,
582582 CertPEM : "" ,
@@ -589,8 +589,8 @@ func TestProvisionService_PrefersMatchingLocation(t *testing.T) {
589589 currentState := & state.State {
590590 Revision : 0 ,
591591 Kings : []state.King {
592- newTestKingWithLocation (testHostA , "5000-5001" , 2333 , false , "us-east" ),
593- newTestKingWithLocation (testHostB , "6000-6001" , 2334 , false , "eu-west" ),
592+ newTestKingWithLocation (testHostA , "5000-5001" , 2333 , "us-east" ),
593+ newTestKingWithLocation (testHostB , "6000-6001" , 2334 , "eu-west" ),
594594 },
595595 Services : []state.Service {
596596 {
@@ -627,8 +627,8 @@ func TestProvisionService_FallsBackWhenPreferredLocationFull(t *testing.T) {
627627 currentState := & state.State {
628628 Revision : 0 ,
629629 Kings : []state.King {
630- newTestKingWithLocation (testHostA , "5000-5001" , 2333 , false , "us-east" ),
631- newTestKingWithLocation (testHostB , "6000-6000" , 2334 , false , "eu-west" ),
630+ newTestKingWithLocation (testHostA , "5000-5001" , 2333 , "us-east" ),
631+ newTestKingWithLocation (testHostB , "6000-6000" , 2334 , "eu-west" ),
632632 },
633633 Services : []state.Service {
634634 {
0 commit comments