public async Task TestIncrementalLogSaveTheLatestState() { await SetUpSource(); await source.ProduceMessageAsync(wordCountMessage1); Thread.Sleep(100); //Here wait becasue int count = await source.GetStateInIncrementalLog(new StreamMessage(wordCountMessage1.Key, "go")); Assert.AreEqual(3, count); }