@@ -474,7 +474,8 @@ func (suite *RuntimeSuite) TestModifyWithResultController() {
474474 suite .Require ().NoError (suite .State .Create (suite .ctx , NewStrResource (srcNS , "id" , "val-1" )))
475475
476476 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
477- suite .assertStrObjects (targetNS , StrResourceType ,
477+ suite .assertStrObjects (
478+ targetNS , StrResourceType ,
478479 []string {"id-out" , "id-out-modify-result" },
479480 []string {"val-1-modified" , "val-1-valid" },
480481 ),
@@ -490,7 +491,8 @@ func (suite *RuntimeSuite) TestModifyWithResultController() {
490491 suite .Require ().NoError (err )
491492
492493 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
493- suite .assertStrObjects (targetNS , StrResourceType ,
494+ suite .assertStrObjects (
495+ targetNS , StrResourceType ,
494496 []string {"id-out" , "id-out-modify-result" },
495497 []string {"val-2-modified" , "val-2-valid" },
496498 ),
@@ -591,7 +593,8 @@ func (suite *RuntimeSuite) TestQIntToStrController() {
591593 suite .startRuntime (ctx )
592594
593595 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
594- suite .assertStrObjects (targetNS , StrResourceType ,
596+ suite .assertStrObjects (
597+ targetNS , StrResourceType ,
595598 []string {"id1" , "id2" },
596599 []string {"1" , "2" },
597600 ),
@@ -600,7 +603,8 @@ func (suite *RuntimeSuite) TestQIntToStrController() {
600603 suite .Require ().NoError (suite .State .Create (suite .ctx , NewIntResource (srcNS , "id3" , 3 )))
601604
602605 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
603- suite .assertStrObjects (targetNS , StrResourceType ,
606+ suite .assertStrObjects (
607+ targetNS , StrResourceType ,
604608 []string {"id1" , "id2" , "id3" },
605609 []string {"1" , "2" , "3" },
606610 ),
@@ -613,7 +617,8 @@ func (suite *RuntimeSuite) TestQIntToStrController() {
613617 suite .Require ().NoError (suite .State .Update (suite .ctx , int2Resource ))
614618
615619 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
616- suite .assertStrObjects (targetNS , StrResourceType ,
620+ suite .assertStrObjects (
621+ targetNS , StrResourceType ,
617622 []string {"id1" , "id2" , "id3" },
618623 []string {"1" , "22" , "3" },
619624 ),
@@ -630,7 +635,8 @@ func (suite *RuntimeSuite) TestQIntToStrController() {
630635 suite .Require ().NoError (suite .State .Destroy (suite .ctx , resource .NewMetadata (srcNS , IntResourceType , "id1" , resource .VersionUndefined )))
631636
632637 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
633- suite .assertStrObjects (targetNS , StrResourceType ,
638+ suite .assertStrObjects (
639+ targetNS , StrResourceType ,
634640 []string {"id2" , "id3" },
635641 []string {"22" , "3" },
636642 ),
@@ -660,7 +666,8 @@ func (suite *RuntimeSuite) TestQIntToStrController() {
660666 suite .Require ().NoError (suite .State .Destroy (suite .ctx , resource .NewMetadata (srcNS , IntResourceType , "id2" , resource .VersionUndefined )))
661667
662668 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
663- suite .assertStrObjects (targetNS , StrResourceType ,
669+ suite .assertStrObjects (
670+ targetNS , StrResourceType ,
664671 []string {"id3" },
665672 []string {"3" },
666673 ),
@@ -713,7 +720,8 @@ func (suite *RuntimeSuite) TestQFailingController() {
713720 suite .Require ().NoError (suite .State .Create (suite .ctx , NewStrResource (srcNS , "id5" , "ok" )))
714721
715722 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
716- suite .assertStrObjects (targetNS , StrResourceType ,
723+ suite .assertStrObjects (
724+ targetNS , StrResourceType ,
717725 []string {"id5" },
718726 []string {"ok" },
719727 ),
@@ -730,7 +738,8 @@ func (suite *RuntimeSuite) TestQFailingController() {
730738 makeNoFail ("id3" )
731739
732740 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
733- suite .assertStrObjects (targetNS , StrResourceType ,
741+ suite .assertStrObjects (
742+ targetNS , StrResourceType ,
734743 []string {"id3" , "id5" },
735744 []string {"no fail" , "ok" },
736745 ),
@@ -740,7 +749,8 @@ func (suite *RuntimeSuite) TestQFailingController() {
740749 makeNoFail ("id2" )
741750
742751 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
743- suite .assertStrObjects (targetNS , StrResourceType ,
752+ suite .assertStrObjects (
753+ targetNS , StrResourceType ,
744754 []string {"id2" , "id3" , "id4" , "id5" },
745755 []string {"no fail" , "no fail" , "no fail" , "ok" },
746756 ),
@@ -764,7 +774,8 @@ func (suite *RuntimeSuite) TestQIntToStrSleepingController() {
764774 suite .startRuntime (suite .ctx )
765775
766776 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
767- suite .assertStrObjects (targetNS , StrResourceType ,
777+ suite .assertStrObjects (
778+ targetNS , StrResourceType ,
768779 []string {"id1" , "id2" },
769780 []string {"1" , "2" },
770781 ),
@@ -773,7 +784,8 @@ func (suite *RuntimeSuite) TestQIntToStrSleepingController() {
773784 suite .Require ().NoError (suite .State .Create (suite .ctx , NewIntResource (srcNS , "id3" , 3 )))
774785
775786 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
776- suite .assertStrObjects (targetNS , StrResourceType ,
787+ suite .assertStrObjects (
788+ targetNS , StrResourceType ,
777789 []string {"id1" , "id2" , "id3" },
778790 []string {"1" , "2" , "3" },
779791 ),
@@ -793,7 +805,8 @@ func (suite *RuntimeSuite) TestQIntToStrSleepingController() {
793805
794806 // id4 and id5 won't show up, as the controller is blocked on id10s
795807 suite .Assert ().NoError (retry .Constant (10 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
796- suite .assertStrObjects (targetNS , StrResourceType ,
808+ suite .assertStrObjects (
809+ targetNS , StrResourceType ,
797810 []string {"id1" , "id2" , "id3" },
798811 []string {"1" , "2" , "3" },
799812 ),
@@ -810,7 +823,8 @@ func (suite *RuntimeSuite) TestQIntToStrSleepingController() {
810823
811824 // id4 and id5 should show up
812825 suite .Assert ().NoError (retry .Constant (3 * time .Second , retry .WithUnits (10 * time .Millisecond )).Retry (
813- suite .assertStrObjects (targetNS , StrResourceType ,
826+ suite .assertStrObjects (
827+ targetNS , StrResourceType ,
814828 []string {"id1" , "id2" , "id3" , "id4" , "id5" },
815829 []string {"1" , "2" , "3" , "4" , "5" },
816830 ),
0 commit comments