@@ -6675,7 +6675,7 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6675
6675
oa1 .Gateway .RejectUnknown = true
6676
6676
sa1 := RunServer (oa1 )
6677
6677
defer sa1 .Shutdown ()
6678
- sa1l := & captureErrorLogger { errCh : make (chan string , 100 )}
6678
+ sa1l := & captureLogger { logCh : make (chan string , 100 )}
6679
6679
sa1 .SetLogger (sa1l , false , false )
6680
6680
6681
6681
oa2 := testGatewayOptionsFromToWithServers (t , "A" , "B" , sb1 )
@@ -6685,7 +6685,7 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6685
6685
oa2 .Routes = RoutesFromStr (fmt .Sprintf ("nats://127.0.0.1:%d" , oa1 .Cluster .Port ))
6686
6686
sa2 := RunServer (oa2 )
6687
6687
defer sa2 .Shutdown ()
6688
- sa2l := & captureErrorLogger { errCh : make (chan string , 100 )}
6688
+ sa2l := & captureLogger { logCh : make (chan string , 100 )}
6689
6689
sa2 .SetLogger (sa2l , false , false )
6690
6690
6691
6691
checkClusterFormed (t , sa1 , sa2 )
@@ -6707,7 +6707,7 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6707
6707
6708
6708
// Since only servers from "A" have configured outbound to
6709
6709
// cluster "B", only servers on "A" are expected to report error.
6710
- for _ , errCh := range []chan string {sa1l .errCh , sa2l .errCh } {
6710
+ for _ , errCh := range []chan string {sa1l .logCh , sa2l .logCh } {
6711
6711
checkForDupError (errCh )
6712
6712
}
6713
6713
@@ -6716,7 +6716,7 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6716
6716
sa1 .Shutdown ()
6717
6717
6718
6718
// Drain the error channels
6719
- for _ , errCh := range []chan string {sa1l .errCh , sa2l .errCh } {
6719
+ for _ , errCh := range []chan string {sa1l .logCh , sa2l .logCh } {
6720
6720
for done := false ; ! done ; {
6721
6721
select {
6722
6722
case <- errCh :
@@ -6749,13 +6749,13 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6749
6749
ob3 .Routes = RoutesFromStr (fmt .Sprintf ("nats://127.0.0.1:%d" , ob2 .Cluster .Port ))
6750
6750
sb3 := RunServer (ob3 )
6751
6751
defer sb3 .Shutdown ()
6752
- sb3l := & captureErrorLogger { errCh : make (chan string , 100 )}
6752
+ sb3l := & captureLogger { logCh : make (chan string , 100 )}
6753
6753
sb3 .SetLogger (sb3l , false , false )
6754
6754
6755
6755
checkClusterFormed (t , sb1 , sb2 , sb3 )
6756
6756
6757
6757
// It should report the error when trying to create the GW connection
6758
- checkForDupError (sb3l .errCh )
6758
+ checkForDupError (sb3l .logCh )
6759
6759
6760
6760
// Stop this node
6761
6761
sb3 .Shutdown ()
@@ -6772,12 +6772,12 @@ func TestGatewayDuplicateServerName(t *testing.T) {
6772
6772
oc .Accounts = []* Account {NewAccount ("sys" )}
6773
6773
sc := RunServer (oc )
6774
6774
defer sc .Shutdown ()
6775
- scl := & captureErrorLogger { errCh : make (chan string , 100 )}
6775
+ scl := & captureLogger { logCh : make (chan string , 100 )}
6776
6776
sc .SetLogger (scl , false , false )
6777
6777
6778
6778
// It should report the error when trying to create the GW connection
6779
6779
// to cluster "A"
6780
- checkForDupError (scl .errCh )
6780
+ checkForDupError (scl .logCh )
6781
6781
}
6782
6782
6783
6783
func TestGatewayNoPanicOnStartupWithMonitoring (t * testing.T ) {
0 commit comments