mirror of
https://github.com/redis/go-redis.git
synced 2025-06-14 01:21:30 +03:00
fix: use all provided sections
This commit is contained in:
committed by
Simon Paredes
parent
dd9a200427
commit
28028b330f
@ -227,6 +227,14 @@ var _ = Describe("Commands", func() {
|
||||
Expect(info.Val()).To(ContainSubstring(`used_cpu_sys`))
|
||||
})
|
||||
|
||||
It("should Info cpu and memory", func() {
|
||||
info := client.Info(ctx, "cpu", "memory")
|
||||
Expect(info.Err()).NotTo(HaveOccurred())
|
||||
Expect(info.Val()).NotTo(Equal(""))
|
||||
Expect(info.Val()).To(ContainSubstring(`used_cpu_sys`))
|
||||
Expect(info.Val()).To(ContainSubstring(`memory`))
|
||||
})
|
||||
|
||||
It("should LastSave", func() {
|
||||
lastSave := client.LastSave(ctx)
|
||||
Expect(lastSave.Err()).NotTo(HaveOccurred())
|
||||
|
Reference in New Issue
Block a user