-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
Signed-off-by: yuluo-yx <[email protected]>
Signed-off-by: yuluo-yx <[email protected]>
…zbeat into 0731-yuluo/fetch-3
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)); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. 😢
Signed-off-by: yuluo-yx <[email protected]>
Signed-off-by: yuluo-yx <[email protected]>
Signed-off-by: yuluo-yx <[email protected]>
Signed-off-by: yuluo-yx <[email protected]>
This pr relationship is confusing and I will reopen a pr. pls see #2454 |
No description provided.