From 701b1d0a8bc497c8dc55fb61bda05afde2dd073b Mon Sep 17 00:00:00 2001 From: monkey92t Date: Thu, 19 Jan 2023 16:01:25 +0800 Subject: [PATCH] fix: 386 platform test Signed-off-by: monkey92t --- commands_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands_test.go b/commands_test.go index 6a11ec8b..f1f7064a 100644 --- a/commands_test.go +++ b/commands_test.go @@ -1233,7 +1233,7 @@ var _ = Describe("Commands", func() { mSet = client.MSet(ctx, &set{ Set1: "val1", Set2: 1024, - Set3: 2 * time.Minute, + Set3: 2 * time.Millisecond, Set4: nil, Set5: map[string]interface{}{"k1": 1}, }) @@ -1245,7 +1245,7 @@ var _ = Describe("Commands", func() { Expect(mGet.Val()).To(Equal([]interface{}{ "val1", "1024", - strconv.Itoa(int(2 * time.Minute.Nanoseconds())), + strconv.Itoa(int(2 * time.Millisecond.Nanoseconds())), "", })) }) @@ -1296,7 +1296,7 @@ var _ = Describe("Commands", func() { mSetNX = client.MSetNX(ctx, &set{ Set1: "val1", Set2: 1024, - Set3: 2 * time.Minute, + Set3: 2 * time.Millisecond, Set4: nil, Set5: map[string]interface{}{"k1": 1}, }) @@ -1956,7 +1956,7 @@ var _ = Describe("Commands", func() { hSet = client.HSet(ctx, "hash", &set{ Set1: "val1", Set2: 1024, - Set3: 2 * time.Minute, + Set3: 2 * time.Millisecond, Set4: nil, Set5: map[string]interface{}{"k1": 1}, }) @@ -1968,7 +1968,7 @@ var _ = Describe("Commands", func() { Expect(hMGet.Val()).To(Equal([]interface{}{ "val1", "1024", - strconv.Itoa(int(2 * time.Minute.Nanoseconds())), + strconv.Itoa(int(2 * time.Millisecond.Nanoseconds())), "", })) })