Skip to content

Commit 1c80d41

Browse files
committed
update
1 parent e9d95a1 commit 1c80d41

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/failover.test.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,24 @@ describe("failover", function () {
3434
});
3535

3636
it("should failover to replica and load key values from config store", async () => {
37-
const replicaDiscoveryEnabled = true;
3837
const isFailoverable = true;
3938
mockConfigurationManagerGetClients(isFailoverable, mockedKVs);
4039

4140
const connectionString = createMockedConnectionString();
42-
const settings = await load(connectionString, {
43-
replicaDiscoveryEnabled: replicaDiscoveryEnabled
44-
});
41+
// replicaDiscoveryEnabled is default to true
42+
const settings = await load(connectionString);
4543
expect(settings).not.undefined;
4644
expect(settings.get("app.settings.fontColor")).eq("red");
4745
expect(settings.get("app.settings.fontSize")).eq("40");
4846
});
4947

5048
it("should failover to replica and load feature flags from config store", async () => {
51-
const replicaDiscoveryEnabled = true;
5249
const isFailoverable = true;
5350
mockConfigurationManagerGetClients(isFailoverable, mockedFeatureFlags);
5451

5552
const connectionString = createMockedConnectionString();
53+
// replicaDiscoveryEnabled is default to true
5654
const settings = await load(connectionString, {
57-
replicaDiscoveryEnabled: replicaDiscoveryEnabled,
5855
featureFlagOptions: {
5956
enabled: true,
6057
selectors: [{

0 commit comments

Comments
 (0)