File tree Expand file tree Collapse file tree
tests/StackExchange.Redis.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ using System . Linq ;
12using System . Threading . Tasks ;
23using Xunit ;
34using Xunit . Sdk ;
@@ -27,5 +28,19 @@ public async Task ClusterHandshakeNodesAreIgnored()
2728 Assert . Contains ( a , ep ) ;
2829 Assert . Contains ( b , ep ) ;
2930 Assert . DoesNotContain ( c , ep ) ;
31+
32+ // check we can still *fetch* handshake nodes via the admin API
33+ var serverApi = conn . GetServer ( a ) ;
34+ var config = await serverApi . ClusterNodesAsync ( ) ;
35+ Assert . NotNull ( config ) ;
36+ Assert . Equal ( 3 , config . Nodes . Count ) ;
37+ var eps = config . Nodes . Select ( x => x . EndPoint ) . ToArray ( ) ;
38+ Assert . Contains ( a , eps ) ;
39+ Assert . Contains ( b , eps ) ;
40+ Assert . Contains ( c , eps ) ;
41+
42+ Assert . False ( config [ a ] ! . IsHandshake ) ;
43+ Assert . False ( config [ b ] ! . IsHandshake ) ;
44+ Assert . True ( config [ c ] ! . IsHandshake ) ;
3045 }
3146}
You can’t perform that action at this time.
0 commit comments