Skip to content

Code block completing before method inside MapValuesAsync finishes #344

Answered by LGouellec
RossSteele1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @RossSteele1 ,

I made couple of changes of your code, and now the unit test is green ✅

rawMessage = JsonConvert.SerializeObject(v3Envelope.Result);
// instead of 
rawMessage = JsonConvert.SerializeObject(v3Envelope);

// the issue was due because you tried to serialize the v3Envelope which is a Task<Envelope> and not the result of the task

Please checkout my branch and test another time.

If you switch the TopologyTestDriver.Mode to ASYNC_CLUSTER_IN_MEMORY (an async mock Kafka cluster), the unit test still green as well :

using var driver = new TopologyTestDriver(stream, config, TopologyTestDriver.Mode.ASYNC_CLUSTER_IN_MEMORY);

But what you need to understand, if you want to join with Gl…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RossSteele1
Comment options

@LGouellec
Comment options

Answer selected by RossSteele1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants