File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,6 +321,18 @@ var _ = Describe("Server", func() {
321321 Expect (r .Val ()).To (Equal ("OK" ))
322322 })
323323
324+ FIt ("should ConfigSet write-buffer-size large value" , func () {
325+ // Test for fix: when setting write-buffer-size value larger than 2147483647,
326+ // the value should not become negative
327+ configSet := client .ConfigSet (ctx , "write-buffer-size" , "3000000000" )
328+ Expect (configSet .Err ()).NotTo (HaveOccurred ())
329+ Expect (configSet .Val ()).To (Equal ("OK" ))
330+
331+ configGet := client .ConfigGet (ctx , "write-buffer-size" )
332+ Expect (configGet .Err ()).NotTo (HaveOccurred ())
333+ Expect (configGet .Val ()).To (Equal (map [string ]string {"write-buffer-size" : "3000000000" }))
334+ })
335+
324336 It ("should ConfigSet maxmemory" , func () {
325337 configGet := client .ConfigGet (ctx , "maxmemory" )
326338 Expect (configGet .Err ()).NotTo (HaveOccurred ())
You can’t perform that action at this time.
0 commit comments