diff options
author | Valery Piashchynski <[email protected]> | 2021-04-23 00:38:37 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-23 00:38:37 +0300 |
commit | 6c55cb6e2d554dfbffe1ce2eedaad3d34202e1bd (patch) | |
tree | ddd08397c74cfc6120e6174864a7a3ef7ca38771 /tests | |
parent | 06ee748c1ca23bf489ae707041f0e8f3e67fbaf7 (diff) |
- Update arch drawio file
- Update comments
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/plugins/kv/configs/.rr-in-memory.yaml | 2 | ||||
-rw-r--r-- | tests/plugins/kv/storage_plugin_test.go | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/plugins/kv/configs/.rr-in-memory.yaml b/tests/plugins/kv/configs/.rr-in-memory.yaml index c6c3f0f7..b3b01f46 100644 --- a/tests/plugins/kv/configs/.rr-in-memory.yaml +++ b/tests/plugins/kv/configs/.rr-in-memory.yaml @@ -6,6 +6,6 @@ logs: level: error kv: - default: + memory-rr: driver: memory interval: 1 diff --git a/tests/plugins/kv/storage_plugin_test.go b/tests/plugins/kv/storage_plugin_test.go index 0c322441..b4122e8a 100644 --- a/tests/plugins/kv/storage_plugin_test.go +++ b/tests/plugins/kv/storage_plugin_test.go @@ -664,7 +664,7 @@ func testRPCMethodsInMemory(t *testing.T) { // add 5 second ttl tt := time.Now().Add(time.Second * 5).Format(time.RFC3339) - keys := makePayload(flatbuffers.NewBuilder(100), "default", []kv.Item{ + keys := makePayload(flatbuffers.NewBuilder(100), "memory-rr", []kv.Item{ { Key: "a", }, @@ -675,7 +675,7 @@ func testRPCMethodsInMemory(t *testing.T) { Key: "c", }, }) - data := makePayload(flatbuffers.NewBuilder(100), "default", []kv.Item{ + data := makePayload(flatbuffers.NewBuilder(100), "memory-rr", []kv.Item{ { Key: "a", Value: "aa", @@ -727,7 +727,7 @@ func testRPCMethodsInMemory(t *testing.T) { assert.Equal(t, "bb", mGet["b"].(string)) tt2 := time.Now().Add(time.Second * 10).Format(time.RFC3339) - data2 := makePayload(flatbuffers.NewBuilder(100), "default", []kv.Item{ + data2 := makePayload(flatbuffers.NewBuilder(100), "memory-rr", []kv.Item{ { Key: "a", TTL: tt2, @@ -749,7 +749,7 @@ func testRPCMethodsInMemory(t *testing.T) { assert.True(t, mExpRes) // TTL - keys2 := makePayload(flatbuffers.NewBuilder(100), "default", []kv.Item{ + keys2 := makePayload(flatbuffers.NewBuilder(100), "memory-rr", []kv.Item{ { Key: "a", }, @@ -773,7 +773,7 @@ func testRPCMethodsInMemory(t *testing.T) { assert.Len(t, ret, 0) // DELETE - keysDel := makePayload(flatbuffers.NewBuilder(100), "default", []kv.Item{ + keysDel := makePayload(flatbuffers.NewBuilder(100), "memory-rr", []kv.Item{ { Key: "e", }, |