Skip to content

Commit

Permalink
Enhance the SimpleTestCommand test, make it cover more case. (#4387)
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy authored May 25, 2024
1 parent 84fd255 commit 4d3c0e0
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ public void testCommand(String... args) throws Exception {
// verify appends
verify(wh, times(10)).append(eq(data));

verify(rh, times(1)).read(anyLong(), anyLong());
// verify close write handle.
verify(wh, times(1)).close();
// verify close the read handle.
verify(rh, times(2)).close();
// verify read entry 0-9
verify(rh, times(1)).readUnconfirmed(0, 9);
verify(rh, times(1)).read(0, 9);
}

}

0 comments on commit 4d3c0e0

Please sign in to comment.