Skip to content

Commit

Permalink
Merge pull request #428 from momentohq/warning-re-failed-ping-test
Browse files Browse the repository at this point in the history
chore: print a warning before eager connection failure test
  • Loading branch information
cprice404 authored Apr 26, 2023
2 parents 1751cd5 + 3844c51 commit e3cead4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void CacheClientConstructor_EagerConnection_BadEndpoint()
var config = Configurations.Laptop.Latest(loggerFactory);
config = config.WithTransportStrategy(config.TransportStrategy.WithEagerConnectionTimeout(TimeSpan.FromSeconds(2)));
var authProviderWithBadCacheEndpoint = authProvider.WithCacheEndpoint("cache.cell-external-beta-1.prod.a.momentohq.com:65000");
Console.WriteLine($"Hello developer! We are about to run a test that verifies that the cache client is still operational even if our eager connection (ping) fails. So you will see the test log a warning message about that. It's expected, don't worry!");
// validating that the constructor doesn't fail when the eager connection fails
var client = new CacheClient(config, authProviderWithBadCacheEndpoint, defaultTtl);
}
Expand Down

0 comments on commit e3cead4

Please sign in to comment.