Making cartservice more reliable
1. Making sure we re-create redis connection upon disconnect 2. Fixed local cart store implementation to handle updates (useful for testing w/o redis) 3. Fixed windows scripts to work against redis correctly
This commit is contained in:
parent
11c208a9f4
commit
d457f7ec28
6 changed files with 179 additions and 103 deletions
|
@ -29,15 +29,16 @@ namespace cartservice
|
|||
{
|
||||
UserId = userId,
|
||||
};
|
||||
|
||||
var cart = await client.GetCartAsync(request);
|
||||
Assert.NotNull(cart);
|
||||
|
||||
|
||||
// All grpc objects implement IEquitable, so we can compare equality with by-value semantics
|
||||
Assert.Equal(new Cart(), cart);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task AddItem_ItemExists_Udpated()
|
||||
public async Task AddItem_ItemExists_Updated()
|
||||
{
|
||||
string userId = Guid.NewGuid().ToString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue