From a653bbffef53250707857c2e4ac49e3553e27ffd Mon Sep 17 00:00:00 2001 From: filipe oliveira Date: Wed, 25 Oct 2023 23:31:44 +0100 Subject: [PATCH] Included tests for -u flag (#34) --- redis-bechmark-go_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redis-bechmark-go_test.go b/redis-bechmark-go_test.go index 78d588a..a6a4c45 100644 --- a/redis-bechmark-go_test.go +++ b/redis-bechmark-go_test.go @@ -100,7 +100,9 @@ func TestGecko(t *testing.T) { args []string }{ {"simple run", 0, 1, 100, []string{"-p", "6379", "-c", "10", "-n", "100", "HSET", "hash:1", "field", "value"}}, + {"simple run username", 0, 1, 100, []string{"-p", "6379", "-u", "default", "-c", "10", "-n", "100", "HSET", "hash:1", "field", "value"}}, {"simple run rueidis", 0, 1, 100, []string{"-p", "6379", "-rueidis", "-c", "10", "-n", "100", "HSET", "hash:1", "field", "value"}}, + {"simple run rueidis username", 0, 1, 100, []string{"-p", "6379", "-rueidis", "-u", "default", "-c", "10", "-n", "100", "HSET", "hash:1", "field", "value"}}, {"run with multi-exec rueidis", 0, 1, 100, []string{"-p", "6379", "-rueidis", "-multi", "-c", "10", "-n", "100", "-rps", "100", "HSET", "hash:1", "field", "value"}}, {"run with rps", 0, 1, 100, []string{"-p", "6379", "-c", "10", "-n", "100", "-rps", "100", "HSET", "hash:1", "field", "value"}}, {"run with rps rueidis", 0, 1, 100, []string{"-p", "6379", "-rueidis", "-c", "10", "-n", "100", "-rps", "100", "HSET", "hash:1", "field", "value"}},