Skip to content

Conversation

LeeTibbert
Copy link
Collaborator

As folks may know better than I, in uTest individual tests are documented
are documented as returning a value, which can itself be validated.
If the return value is not Unit, it is printed out.

Before this PR, the "close multiple times" test was returning the
value of an object, which was getting printed out and adding
something to the log which needed to be figured out as safe.

This PR causes that test to be silent, thereby reducing clutter.

Agreed, this is a nit. I think it is worth fixing because the present
file may serve as a cut & paste template for additional tests as they
are added.

If I can not fix something useful, I can at least remove a small wart.

@LeeTibbert LeeTibbert requested a review from lolgab July 27, 2020 15:55
@lolgab
Copy link
Collaborator

lolgab commented Jul 27, 2020

Good catch!
Actually this test had another problem, a timer firing after the test completion..
I added a commit to make the test to return Future, so it checks for the last clear calls.

LeeTibbert and others added 2 commits July 27, 2020 20:06
As folks may know better than I, in uTest individual tests are documented
are documented as returning a value, which can itself be validated.
If the return value is not Unit, it is printed out.

Before this PR, the "close multiple times" test was returning the
value of an object, which was getting printed out and adding
something to the log which needed to be figured out as safe.

This PR causes that test to be silent, thereby reducing clutter.

Agreed, this is a nit. I think it is worth fixing because the present
file may serve as a cut & paste template for additional tests as they
are added.

If I can not fix something useful, I can at least remove a small wart.
Before the timer was timing out after the test was declared successful.
To preserve the semantics of utest a async test need to return the last
Future to be completed as result
@lolgab lolgab force-pushed the d1/lee49/DevoHdd1/sn_native-loop/Devo_1/PR_core_test_SilenceOneTest_2020-07-27 branch from adf3686 to 3a24bd5 Compare July 27, 2020 18:06
@lolgab lolgab merged commit 7f9850c into scala-native:master Jul 27, 2020
@LeeTibbert LeeTibbert deleted the d1/lee49/DevoHdd1/sn_native-loop/Devo_1/PR_core_test_SilenceOneTest_2020-07-27 branch July 27, 2020 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants