Skip to content

Fix unit test testEmitSingleLongTimeRt() in MonoSentinelOperatorInteg…#3070

Open
LiYangSir wants to merge 1 commit into
alibaba:masterfrom
LiYangSir:fix_mono_rt_unit_test
Open

Fix unit test testEmitSingleLongTimeRt() in MonoSentinelOperatorInteg…#3070
LiYangSir wants to merge 1 commit into
alibaba:masterfrom
LiYangSir:fix_mono_rt_unit_test

Conversation

@LiYangSir
Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

Fix unit test testEmitSingleLongTimeRt() in MonoSentinelOperatorIntegrationTest.

Does this pull request fix one issue?

Fixes #2974

Describe how you did it

Do a warm-up before invoke testEmitSingleLongTimeRt() to ensure that the test results meet expectations.

Describe how to verify it

Whether run the test on its own or the test class, the result of avgRt() is almost the same.

Special notes for reviews

NONE

@sczyh30 sczyh30 added the area/test Issue or PR related to test cases label Mar 23, 2023
@Test
public void testEmitSingleLongTimeRt() {
String resourceName = createResourceName("testEmitSingleLongTimeRt");
// Warmup once
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please illustrate why we need a warmup here in the code comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@LiYangSir LiYangSir force-pushed the fix_mono_rt_unit_test branch from c239146 to b681790 Compare March 29, 2023 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/test Issue or PR related to test cases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test

2 participants