You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/03/13 10:27:13 UTC
[shardingsphere] branch master updated: Fixes #24557 (#24577)
This is an automated email from the ASF dual-hosted git repository.
zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 7ec421b192b Fixes #24557 (#24577)
7ec421b192b is described below
commit 7ec421b192bef2ffe1d354bc00eec62a634aa6cc
Author: Raigor <ra...@gmail.com>
AuthorDate: Mon Mar 13 18:27:02 2023 +0800
Fixes #24557 (#24577)
* Fixes #24557
* use atLeastOnce.
---
.../binary/execute/protocol/MySQLTimeBinaryProtocolValueTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/db-protocol/mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLTimeBinaryProtocolValueTest.java b/db-protocol/mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLTimeBinaryProtocolValueTest.java
index 829b2d07e2d..c2c1e795905 100644
--- a/db-protocol/mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLTimeBinaryProtocolValueTest.java
+++ b/db-protocol/mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/binary/execute/protocol/MySQLTimeBinaryProtocolValueTest.java
@@ -33,6 +33,7 @@ import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.mockito.ArgumentMatchers.anyInt;
+import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
@@ -99,7 +100,7 @@ public final class MySQLTimeBinaryProtocolValueTest {
public void assertWriteWithTwelveBytes() {
MySQLTimeBinaryProtocolValue actual = new MySQLTimeBinaryProtocolValue();
actual.write(payload, new Time(1L));
- verify(payload).writeInt1(12);
+ verify(payload, atLeastOnce()).writeInt1(12);
verify(payload, times(5)).writeInt1(anyInt());
verify(payload).writeInt4(0);
verify(payload).writeInt4(1000000);