Skip to content

Commit 638395b

Browse files
committed
gofmt
1 parent 21c24d5 commit 638395b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/gocase/unit/type/hash/hash_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ var testHash = func(t *testing.T, configs map[string]string) {
871871
t.Run("Test bug with large value after compaction", func(t *testing.T) {
872872
testKey := "test-hash-1"
873873
require.NoError(t, rdb.Del(ctx, testKey).Err())
874-
874+
875875
src := rand.NewSource(time.Now().UnixNano())
876876
dd := make([]byte, 5000)
877877
for i := 1; i <= 50; i++ {
@@ -881,16 +881,16 @@ var testHash = func(t *testing.T, configs map[string]string) {
881881
key := util.RandString(10, 20, util.Alpha)
882882
require.NoError(t, rdb.HSet(ctx, testKey, key, string(dd)).Err())
883883
}
884-
884+
885885
require.EqualValues(t, 50, rdb.HLen(ctx, testKey).Val())
886886
require.Len(t, rdb.HGetAll(ctx, testKey).Val(), 50)
887887
require.Len(t, rdb.HKeys(ctx, testKey).Val(), 50)
888888
require.Len(t, rdb.HVals(ctx, testKey).Val(), 50)
889-
889+
890890
require.NoError(t, rdb.Do(ctx, "COMPACT").Err())
891-
891+
892892
time.Sleep(5 * time.Second)
893-
893+
894894
require.EqualValues(t, 50, rdb.HLen(ctx, testKey).Val())
895895
require.Len(t, rdb.HGetAll(ctx, testKey).Val(), 50)
896896
require.Len(t, rdb.HKeys(ctx, testKey).Val(), 50)

0 commit comments

Comments
 (0)