We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f4859 commit cd030daCopy full SHA for cd030da
commands_test.go
@@ -291,6 +291,17 @@ var _ = Describe("Commands", func() {
291
}()
292
pipe.ClientSetInfo(ctx, libInfo)
293
}).To(Panic())
294
+ // Test setting the default options for libName, libName suffix and libVer
295
+ clientInfo := client.ClientInfo(ctx).Val()
296
+ Expect(clientInfo.LibName).To(ContainSubstring("go-redis(go-redis,"))
297
+ // Test setting the libName suffix in options
298
+ opt := redisOptions()
299
+ opt.IdentitySuffix = "suffix"
300
+ client2 := redis.NewClient(opt)
301
+ defer client2.Close()
302
+ clientInfo = client2.ClientInfo(ctx).Val()
303
+ Expect(clientInfo.LibName).To(ContainSubstring("go-redis(suffix,"))
304
+
305
})
306
307
It("should ConfigGet", func() {
0 commit comments