Skip to content

Commit

Permalink
Fix ProcessListChangedSubscriberTest unit test ci in windows env (#28770
Browse files Browse the repository at this point in the history
)
  • Loading branch information
zhaojinchao95 authored Oct 16, 2023
1 parent 291ee68 commit 7de875b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ void assertReportLocalProcesses() {
subscriber.reportLocalProcesses(new ReportLocalProcessesEvent(instanceId, processId));
ClusterPersistRepository repository = registryCenter.getRepository();
verify(repository).persist("/execution_nodes/foo_id/" + instanceId,
"processes:" + System.lineSeparator() + "- completedUnitCount: 0\n heldByConnection: false\n id: foo_id\n idle: false\n startMillis: 0\n totalUnitCount: 0"
+ System.lineSeparator());
"processes:" + System.lineSeparator() + "- completedUnitCount: 0" + System.lineSeparator()
+ " heldByConnection: false" + System.lineSeparator()
+ " id: foo_id" + System.lineSeparator()
+ " idle: false" + System.lineSeparator()
+ " startMillis: 0" + System.lineSeparator()
+ " totalUnitCount: 0" + System.lineSeparator());
verify(repository).delete("/nodes/compute_nodes/show_process_list_trigger/" + instanceId + ":foo_id");
}

Expand Down

0 comments on commit 7de875b

Please sign in to comment.