@@ -435,6 +435,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
435
435
Ip : "127.0.0.1" ,
436
436
Port : 8003 ,
437
437
DownloadPort : 8001 ,
438
+ DisableShared : true ,
438
439
Os : "darwin" ,
439
440
Platform : "darwin" ,
440
441
PlatformFamily : "Standalone Workstation" ,
@@ -505,6 +506,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
505
506
assert .Equal (host .IP , req .Host .Ip )
506
507
assert .Equal (host .Port , req .Host .Port )
507
508
assert .Equal (host .DownloadPort , req .Host .DownloadPort )
509
+ assert .Equal (host .DisableShared , req .Host .DisableShared )
508
510
assert .Equal (host .OS , req .Host .Os )
509
511
assert .Equal (host .Platform , req .Host .Platform )
510
512
assert .Equal (host .PlatformVersion , req .Host .PlatformVersion )
@@ -541,6 +543,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
541
543
Ip : "127.0.0.1" ,
542
544
Port : 8003 ,
543
545
DownloadPort : 8001 ,
546
+ DisableShared : false ,
544
547
Os : "darwin" ,
545
548
Platform : "darwin" ,
546
549
PlatformFamily : "Standalone Workstation" ,
@@ -611,6 +614,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
611
614
assert .Equal (host .IP , req .Host .Ip )
612
615
assert .Equal (host .Port , req .Host .Port )
613
616
assert .Equal (host .DownloadPort , req .Host .DownloadPort )
617
+ assert .Equal (host .DisableShared , req .Host .DisableShared )
614
618
assert .Equal (host .OS , req .Host .Os )
615
619
assert .Equal (host .Platform , req .Host .Platform )
616
620
assert .Equal (host .PlatformVersion , req .Host .PlatformVersion )
@@ -647,6 +651,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
647
651
Ip : "127.0.0.1" ,
648
652
Port : 8003 ,
649
653
DownloadPort : 8001 ,
654
+ DisableShared : true ,
650
655
Os : "darwin" ,
651
656
Platform : "darwin" ,
652
657
PlatformFamily : "Standalone Workstation" ,
@@ -718,6 +723,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
718
723
assert .Equal (host .IP , req .Host .Ip )
719
724
assert .Equal (host .Port , req .Host .Port )
720
725
assert .Equal (host .DownloadPort , req .Host .DownloadPort )
726
+ assert .Equal (host .DisableShared , req .Host .DisableShared )
721
727
assert .Equal (host .OS , req .Host .Os )
722
728
assert .Equal (host .Platform , req .Host .Platform )
723
729
assert .Equal (host .PlatformVersion , req .Host .PlatformVersion )
@@ -749,6 +755,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
749
755
Ip : "127.0.0.1" ,
750
756
Port : 8003 ,
751
757
DownloadPort : 8001 ,
758
+ DisableShared : false ,
752
759
Os : "darwin" ,
753
760
Platform : "darwin" ,
754
761
PlatformFamily : "Standalone Workstation" ,
@@ -820,6 +827,7 @@ func TestServiceV2_AnnounceHost(t *testing.T) {
820
827
assert .Equal (host .IP , req .Host .Ip )
821
828
assert .Equal (host .Port , req .Host .Port )
822
829
assert .Equal (host .DownloadPort , req .Host .DownloadPort )
830
+ assert .Equal (host .DisableShared , req .Host .DisableShared )
823
831
assert .Equal (host .OS , req .Host .Os )
824
832
assert .Equal (host .Platform , req .Host .Platform )
825
833
assert .Equal (host .PlatformVersion , req .Host .PlatformVersion )
0 commit comments