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

Handle any version string for summarycommandtest #18091

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ private void checkIfOutputValid(String dateFormatPattern, List<? extends String>
" Version: testVersion",
" Safe Mode: false"));
expectedOutput.addAll(HAPattern);
String versionStr = String.format("%-32s", RuntimeConstants.VERSION);
expectedOutput.addAll(new ArrayList<>(Arrays.asList(
" Master Address State Version ",
" hostname1:10000 Primary 2.10.0-SNAPSHOT ",
" hostname2:10001 Standby 2.10.0-SNAPSHOT ",
" hostname3:10002 Standby 2.10.0-SNAPSHOT ",
" hostname1:10000 Primary " + versionStr,
" hostname2:10001 Standby " + versionStr,
" hostname3:10002 Standby " + versionStr,
" Live Workers: 12",
" Lost Workers: 4",
" Total Capacity: 1309.92KB",
Expand Down
Loading