Skip to content

Commit

Permalink
Tweak MemcachedClientGetTests for Unexpected BsonType exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cnblogs-dudu committed Dec 30, 2018
1 parent 4583afd commit 24126af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Enyim.Caching.Tests/MemcachedClientGetTests.cs
Expand Up @@ -103,8 +103,8 @@ public async Task GetValueOrCreateAsyncTest()
{
var key = "GetValueOrCreateAsyncTest_" + Guid.NewGuid();
var posts1 = await _client.GetValueOrCreateAsync(
key,
10,
key,
10,
async () => await GenerateValue());
Assert.NotNull(posts1);

Expand All @@ -129,6 +129,7 @@ private Task<IEnumerable<BlogPost>> GenerateValue()
internal class BlogPost
{
public string Title { get; set; }
public string Tags { get; set; }
public string Body { get; set; }
}
}
Expand Down

0 comments on commit 24126af

Please sign in to comment.