Skip to content

Commit

Permalink
improve the test
Browse files Browse the repository at this point in the history
  • Loading branch information
poorbarcode committed May 18, 2023
1 parent cb63f31 commit e498f17
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ public void testThreadSwitchOfZkMetadataStore(boolean hasSynchronizer, boolean e
String currentThreadName = Thread.currentThread().getName();
String errorMessage = String.format("Expect to switch to thread %s, but currently it is thread %s",
metadataStoreName, currentThreadName);
if (!Thread.currentThread().getName().startsWith(metadataStoreName)){
throw new RuntimeException(errorMessage);
}
assertTrue(Thread.currentThread().getName().startsWith(metadataStoreName), errorMessage);
};

// put with node which has parent(but the parent node is not exists).
Expand Down

0 comments on commit e498f17

Please sign in to comment.