1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-12 14:21:52 +03:00

commands.go: add section parameter to Info function.

This commit is contained in:
Anatolii Mihailenco
2016-01-08 15:03:34 +02:00
parent 0363b69248
commit 602824623b
2 changed files with 13 additions and 3 deletions

View File

@ -130,6 +130,13 @@ var _ = Describe("Commands", func() {
Expect(info.Val()).NotTo(Equal(""))
})
It("should Info cpu", func() {
info := client.Info("cpu")
Expect(info.Err()).NotTo(HaveOccurred())
Expect(info.Val()).NotTo(Equal(""))
Expect(info.Val()).To(ContainSubstring(`used_cpu_sys`))
})
It("should LastSave", func() {
lastSave := client.LastSave()
Expect(lastSave.Err()).NotTo(HaveOccurred())