This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +25
-11
lines changed
tests/ServiceStack.Redis.Tests/Integration Expand file tree Collapse file tree 2 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,21 @@ namespace ServiceStack.Redis.Tests.Integration
1010 [ Category ( "Integration" ) ]
1111 public class IntegrationTestBase
1212 {
13- protected IRedisClientsManager CreateAndStartPoolManager (
14- string [ ] readWriteHosts , string [ ] readOnlyHosts )
15- {
16- return new PooledRedisClientManager ( readWriteHosts , readOnlyHosts ) ;
17- }
13+ protected IRedisClientsManager CreateAndStartPoolManager (
14+ string [ ] readWriteHosts , string [ ] readOnlyHosts )
15+ {
16+ return new PooledRedisClientManager ( readWriteHosts , readOnlyHosts ) ;
17+ }
18+
19+ protected IRedisClientsManager CreateAndStartManagerPool (
20+ string [ ] readWriteHosts , string [ ] readOnlyHosts )
21+ {
22+ return new RedisManagerPool ( readWriteHosts , new RedisPoolConfig {
23+ MaxPoolSize = 10
24+ } ) ;
25+ }
1826
19- protected IRedisClientsManager CreateAndStartBasicCacheManager (
27+ protected IRedisClientsManager CreateAndStartBasicCacheManager (
2028 string [ ] readWriteHosts , string [ ] readOnlyHosts )
2129 {
2230 return new BasicRedisClientManager ( readWriteHosts , readOnlyHosts ) ;
Original file line number Diff line number Diff line change @@ -38,11 +38,17 @@ public void Pool_can_support_64_threads_using_the_client_simultaneously()
3838 RunSimultaneously ( CreateAndStartManager , UseClient ) ;
3939 }
4040
41- [ Test ]
42- public void Basic_can_support_64_threads_using_the_client_simultaneously ( )
43- {
44- RunSimultaneously ( CreateAndStartBasicManager , UseClient ) ;
45- }
41+ [ Test ]
42+ public void Basic_can_support_64_threads_using_the_client_simultaneously ( )
43+ {
44+ RunSimultaneously ( CreateAndStartBasicManager , UseClient ) ;
45+ }
46+
47+ [ Test ]
48+ public void ManagerPool_can_support_64_threads_using_the_client_simultaneously ( )
49+ {
50+ RunSimultaneously ( CreateAndStartManagerPool , UseClient ) ;
51+ }
4652
4753 private static void UseClient ( IRedisClientsManager manager , int clientNo )
4854 {
You can’t perform that action at this time.
0 commit comments