@@ -12,6 +12,7 @@ public class SentinelTests(ITestOutputHelper output) : SentinelBase(output)
1212 [ Fact ]
1313 public async Task PrimaryConnectTest ( )
1414 {
15+ SkipOnWindowsRelease ( ) ;
1516 var connectionString = $ "{ TestConfig . Current . SentinelServer } ,serviceName={ ServiceOptions . ServiceName } ,allowAdmin=true";
1617
1718 var conn = ConnectionMultiplexer . Connect ( connectionString ) ;
@@ -49,6 +50,7 @@ public async Task PrimaryConnectTest()
4950 [ Fact ]
5051 public async Task PrimaryConnectAsyncTest ( )
5152 {
53+ SkipOnWindowsRelease ( ) ;
5254 var connectionString = $ "{ TestConfig . Current . SentinelServer } ,serviceName={ ServiceOptions . ServiceName } ,allowAdmin=true";
5355 var conn = await ConnectionMultiplexer . ConnectAsync ( connectionString ) ;
5456
@@ -86,6 +88,7 @@ public async Task PrimaryConnectAsyncTest()
8688 [ RunPerProtocol ]
8789 public async Task SentinelConnectTest ( )
8890 {
91+ SkipOnWindowsRelease ( ) ;
8992 var options = ServiceOptions . Clone ( ) ;
9093 options . EndPoints . Add ( TestConfig . Current . SentinelServer , TestConfig . Current . SentinelPortA ) ;
9194 await using var conn = ConnectionMultiplexer . SentinelConnect ( options ) ;
@@ -98,6 +101,7 @@ public async Task SentinelConnectTest()
98101 [ Fact ]
99102 public async Task SentinelRepeatConnectTest ( )
100103 {
104+ SkipOnWindowsRelease ( ) ;
101105 var options = ConfigurationOptions . Parse ( $ "{ TestConfig . Current . SentinelServer } :{ TestConfig . Current . SentinelPortA } ") ;
102106 options . ServiceName = ServiceName ;
103107 options . AllowAdmin = true ;
@@ -130,6 +134,7 @@ public async Task SentinelRepeatConnectTest()
130134 [ Fact ]
131135 public async Task SentinelConnectAsyncTest ( )
132136 {
137+ SkipOnWindowsRelease ( ) ;
133138 var options = ServiceOptions . Clone ( ) ;
134139 options . EndPoints . Add ( TestConfig . Current . SentinelServer , TestConfig . Current . SentinelPortA ) ;
135140 var conn = await ConnectionMultiplexer . SentinelConnectAsync ( options ) ;
@@ -142,6 +147,7 @@ public async Task SentinelConnectAsyncTest()
142147 [ Fact ]
143148 public void SentinelRole ( )
144149 {
150+ SkipOnWindowsRelease ( ) ;
145151 foreach ( var server in SentinelsServers )
146152 {
147153 var role = server . Role ( ) ;
@@ -155,6 +161,7 @@ public void SentinelRole()
155161 [ Fact ]
156162 public async Task PingTest ( )
157163 {
164+ SkipOnWindowsRelease ( ) ;
158165 var test = await SentinelServerA . PingAsync ( ) ;
159166 Log ( "ping to sentinel {0}:{1} took {2} ms" , TestConfig . Current . SentinelServer , TestConfig . Current . SentinelPortA , test . TotalMilliseconds ) ;
160167 test = await SentinelServerB . PingAsync ( ) ;
@@ -166,6 +173,7 @@ public async Task PingTest()
166173 [ Fact ]
167174 public void SentinelGetPrimaryAddressByNameTest ( )
168175 {
176+ SkipOnWindowsRelease ( ) ;
169177 foreach ( var server in SentinelsServers )
170178 {
171179 var primary = server . SentinelMaster ( ServiceName ) ;
@@ -182,6 +190,7 @@ public void SentinelGetPrimaryAddressByNameTest()
182190 [ Fact ]
183191 public async Task SentinelGetPrimaryAddressByNameAsyncTest ( )
184192 {
193+ SkipOnWindowsRelease ( ) ;
185194 foreach ( var server in SentinelsServers )
186195 {
187196 var primary = server . SentinelMaster ( ServiceName ) ;
@@ -198,6 +207,7 @@ public async Task SentinelGetPrimaryAddressByNameAsyncTest()
198207 [ Fact ]
199208 public void SentinelGetMasterAddressByNameNegativeTest ( )
200209 {
210+ SkipOnWindowsRelease ( ) ;
201211 foreach ( var server in SentinelsServers )
202212 {
203213 var endpoint = server . SentinelGetMasterAddressByName ( "FakeServiceName" ) ;
@@ -208,6 +218,7 @@ public void SentinelGetMasterAddressByNameNegativeTest()
208218 [ Fact ]
209219 public async Task SentinelGetMasterAddressByNameAsyncNegativeTest ( )
210220 {
221+ SkipOnWindowsRelease ( ) ;
211222 foreach ( var server in SentinelsServers )
212223 {
213224 var endpoint = await server . SentinelGetMasterAddressByNameAsync ( "FakeServiceName" ) . ForAwait ( ) ;
@@ -218,6 +229,7 @@ public async Task SentinelGetMasterAddressByNameAsyncNegativeTest()
218229 [ Fact ]
219230 public void SentinelPrimaryTest ( )
220231 {
232+ SkipOnWindowsRelease ( ) ;
221233 foreach ( var server in SentinelsServers )
222234 {
223235 var dict = server . SentinelMaster ( ServiceName ) . ToDictionary ( ) ;
@@ -233,6 +245,7 @@ public void SentinelPrimaryTest()
233245 [ Fact ]
234246 public async Task SentinelPrimaryAsyncTest ( )
235247 {
248+ SkipOnWindowsRelease ( ) ;
236249 foreach ( var server in SentinelsServers )
237250 {
238251 var results = await server . SentinelMasterAsync ( ServiceName ) . ForAwait ( ) ;
@@ -248,6 +261,7 @@ public async Task SentinelPrimaryAsyncTest()
248261 [ Fact ]
249262 public void SentinelSentinelsTest ( )
250263 {
264+ SkipOnWindowsRelease ( ) ;
251265 var sentinels = SentinelServerA . SentinelSentinels ( ServiceName ) ;
252266
253267 var expected = new List < string ? >
@@ -305,6 +319,7 @@ public void SentinelSentinelsTest()
305319 [ Fact ]
306320 public async Task SentinelSentinelsAsyncTest ( )
307321 {
322+ SkipOnWindowsRelease ( ) ;
308323 var sentinels = await SentinelServerA . SentinelSentinelsAsync ( ServiceName ) . ForAwait ( ) ;
309324 var expected = new List < string ? >
310325 {
@@ -363,6 +378,7 @@ public async Task SentinelSentinelsAsyncTest()
363378 [ Fact ]
364379 public void SentinelPrimariesTest ( )
365380 {
381+ SkipOnWindowsRelease ( ) ;
366382 var primaryConfigs = SentinelServerA . SentinelMasters ( ) ;
367383 Assert . Single ( primaryConfigs ) ;
368384 Assert . True ( primaryConfigs [ 0 ] . ToDictionary ( ) . ContainsKey ( "name" ) , "replicaConfigs contains 'name'" ) ;
@@ -380,6 +396,7 @@ public void SentinelPrimariesTest()
380396 [ Fact ]
381397 public async Task SentinelPrimariesAsyncTest ( )
382398 {
399+ SkipOnWindowsRelease ( ) ;
383400 var primaryConfigs = await SentinelServerA . SentinelMastersAsync ( ) . ForAwait ( ) ;
384401 Assert . Single ( primaryConfigs ) ;
385402 Assert . True ( primaryConfigs [ 0 ] . ToDictionary ( ) . ContainsKey ( "name" ) , "replicaConfigs contains 'name'" ) ;
@@ -397,6 +414,7 @@ public async Task SentinelPrimariesAsyncTest()
397414 [ Fact ]
398415 public async Task SentinelReplicasTest ( )
399416 {
417+ SkipOnWindowsRelease ( ) ;
400418 // Give previous test run a moment to reset when multi-framework failover is in play.
401419 await UntilConditionAsync ( TimeSpan . FromSeconds ( 5 ) , ( ) => SentinelServerA . SentinelReplicas ( ServiceName ) . Length > 0 ) ;
402420
@@ -417,6 +435,7 @@ public async Task SentinelReplicasTest()
417435 [ Fact ]
418436 public async Task SentinelReplicasAsyncTest ( )
419437 {
438+ SkipOnWindowsRelease ( ) ;
420439 // Give previous test run a moment to reset when multi-framework failover is in play.
421440 await UntilConditionAsync ( TimeSpan . FromSeconds ( 5 ) , ( ) => SentinelServerA . SentinelReplicas ( ServiceName ) . Length > 0 ) ;
422441
@@ -436,6 +455,7 @@ public async Task SentinelReplicasAsyncTest()
436455 [ Fact ]
437456 public async Task SentinelGetSentinelAddressesTest ( )
438457 {
458+ SkipOnWindowsRelease ( ) ;
439459 var addresses = await SentinelServerA . SentinelGetSentinelAddressesAsync ( ServiceName ) . ForAwait ( ) ;
440460 Assert . Contains ( SentinelServerB . EndPoint , addresses ) ;
441461 Assert . Contains ( SentinelServerC . EndPoint , addresses ) ;
@@ -452,6 +472,7 @@ public async Task SentinelGetSentinelAddressesTest()
452472 [ Fact ]
453473 public async Task ReadOnlyConnectionReplicasTest ( )
454474 {
475+ SkipOnWindowsRelease ( ) ;
455476 var replicas = SentinelServerA . SentinelGetReplicaAddresses ( ServiceName ) ;
456477 if ( replicas . Length == 0 )
457478 {
0 commit comments