Skip to content

Commit 38f7b5e

Browse files
committed
fix create db config
1 parent ecd679b commit 38f7b5e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

maintnotifications/e2e/config_parser_test.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,17 @@ func ConvertEnvDatabaseConfigToFaultInjectorConfig(envConfig EnvDatabaseConfig,
528528

529529
// Build the database config for fault injector
530530
dbConfig := DatabaseConfig{
531-
Name: name,
532-
Port: port + randomPortOffset,
533-
MemorySize: 268435456, // 256MB default
534-
Replication: false,
535-
EvictionPolicy: "noeviction",
536-
Sharding: false,
537-
AutoUpgrade: true,
538-
ShardsCount: 1,
539-
OSSCluster: false,
531+
Name: name,
532+
Port: port + randomPortOffset,
533+
MemorySize: 268435456, // 256MB default
534+
Replication: true,
535+
EvictionPolicy: "noeviction",
536+
ProxyPolicy: "single",
537+
AutoUpgrade: true,
538+
Sharding: true,
539+
ShardsCount: 2,
540+
ShardsPlacement: "dense",
541+
OSSCluster: false,
540542
}
541543

542544
// If we have raw_endpoints with cluster info, configure for cluster

0 commit comments

Comments
 (0)