Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improve] add alarm define slience unit test #2426

Closed
wants to merge 17 commits into from

Conversation

yuluo-yx
Copy link
Contributor

No description provided.

Signed-off-by: yuluo-yx <[email protected]>
@tomsun28 tomsun28 changed the title [Improve] add unit test [Improve] add alarm define slience unit test Aug 2, 2024
Comment on lines 116 to 119
Page<AlertDefine> alertDefinePage = alertDefineService.getAlertDefines(specification, pageRequest);
return ResponseEntity.ok(Message.success(alertDefinePage));
Page<AlertDefine> alertDefinePages = new PageImpl<>(alertDefinePage.getContent(), pageRequest, alertDefinePage.getTotalElements());

return ResponseEntity.ok(Message.success(alertDefinePages));
Copy link
Contributor

Choose a reason for hiding this comment

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

hi why new a pageImpl to replace pre one here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is due to the fact that it causes errors during testing, and I also found the same problem in another test class, so I did it this way

but I didn't find out what the exact cause of the problem was, but this does fix the test questions. 😢

@yuluo-yx
Copy link
Contributor Author

yuluo-yx commented Aug 4, 2024

This pr relationship is confusing and I will reopen a pr. pls see #2454

@yuluo-yx yuluo-yx closed this Aug 4, 2024
@yuluo-yx yuluo-yx deleted the 0731-yuluo/fetch-3 branch August 4, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants