Skip to content

Test randomly hangs in CI #727

Answered by egil
RaphaelMarcouxCTRL asked this question in Q&A
Discussion options

You must be logged in to vote

Took a more detailed look at you test code.

In EditerTestsBase you have two properties, Edition and Recherche, that you use multiple times in your test. However, because you write them like this:

protected IRenderedComponent<FeuilleTempsEdition> Edition => Horodateur.FindComponent<FeuilleTempsEdition>();

You are calling FindComponent everytime you access the property, which is not only wasteful, but probably not what you want.

I changed the top of EditerTestsBase to this:

    protected IRenderedComponent<FeuilleTempsEdition> Edition() 
        => Horodateur.FindComponent<FeuilleTempsEdition>();
    protected IGestionChronometre GestionChronometre { get; private set; }

    protected IRend…

Replies: 3 comments 14 replies

Comment options

linkdotnet
May 18, 2022
Maintainer Sponsor

You must be logged in to vote
11 replies
@RaphaelMarcouxCTRL
Comment options

@nguyenhthai
Comment options

@RaphaelMarcouxCTRL
Comment options

@linkdotnet
Comment options

linkdotnet May 19, 2022
Maintainer Sponsor

@egil
Comment options

egil May 19, 2022
Maintainer

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@RaphaelMarcouxCTRL
Comment options

@egil
Comment options

egil May 20, 2022
Maintainer

@RaphaelMarcouxCTRL
Comment options

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