PragmaTwice commented on code in PR #2402:
URL: https://github.com/apache/kvrocks/pull/2402#discussion_r1696916321


##########
tests/gocase/unit/type/hash/hash_test.go:
##########
@@ -936,3 +944,235 @@ func TestHashWithAsyncIODisabled(t *testing.T) {
                require.Len(t, rdb.HVals(ctx, testKey).Val(), 50)
        })
 }
+
+func TestExpireFieldOnExistingHash(t *testing.T) {
+       srv := util.StartServer(t, map[string]string{
+               "hash-field-expiration": "no",
+       })
+       defer srv.Close()
+
+       rdb := srv.NewClient()
+       defer func() { require.NoError(t, rdb.Close()) }()
+
+       ctx := context.Background()

Review Comment:
   Just one test case is not enough.
   
   For all existing test function e.g.
   ```
   func TestXXX() { ... }
   ```
   we can change them to:
   ```
   func TestXXXImpl(field_expiration_enabled) {
     startServer({"hash-field-expiration": field_expiration_enabled})
     ... // original code
   }
   
   func TestXXX() {
     TestXXXImple(true)
     TestXXXImpl(false)
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to