This is an automated email from the ASF dual-hosted git repository.

git-hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/unstable by this push:
     new a36fd9138 fix(tests): accept zero microseconds in TIME (#3721)
a36fd9138 is described below

commit a36fd913839e7c08688310f5ff73aa2cf26068ad
Author: hulk <[email protected]>
AuthorDate: Tue Oct 27 18:17:55 2026 +0800

    fix(tests): accept zero microseconds in TIME (#3721)
    
    The TIME test rejects zero microseconds even though the microsecond
    component may be any value from 0 through 999,999.
    
    When TIME samples the clock at a whole-second boundary, it returns zero
    for that component and the strict lower-bound assertion fails.
    
    Accept zero while preserving the existing upper bound and checks on
    the seconds component.
    
    Reference: [CI
    
failure](https://github.com/apache/kvrocks/actions/runs/40208526297/job/121224316721)
    
    Assistant-By GPT-6
---
 tests/gocase/unit/introspection/introspection_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gocase/unit/introspection/introspection_test.go 
b/tests/gocase/unit/introspection/introspection_test.go
index f8b0874b5..919240b24 100644
--- a/tests/gocase/unit/introspection/introspection_test.go
+++ b/tests/gocase/unit/introspection/introspection_test.go
@@ -104,7 +104,7 @@ func TestIntrospection(t *testing.T) {
 
                us, err := strconv.Atoi(vs[1].(string))
                require.NoError(t, err)
-               require.Greater(t, us, 0)
+               require.GreaterOrEqual(t, us, 0)
                require.Less(t, us, 1000000)
        })
 

Reply via email to