Combined appends into a single call (#10865)

Signed-off-by: Biki-das <bikid475@gmail.com>
pull/10875/head
BIKI DAS 2021-10-29 08:28:38 +05:30 committed by GitHub
parent 97fa55602b
commit b1d6d52c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -61,14 +61,7 @@ func TestBaseTable_SaveAndLoad(t *testing.T) {
func TestBaseTable_LoadFromKVPair(t *testing.T) {
var kvPairs []*commonpb.KeyValuePair
kvPairs = append(kvPairs, &commonpb.KeyValuePair{
Key: "k1",
Value: "v1",
})
kvPairs = append(kvPairs, &commonpb.KeyValuePair{
Key: "k2",
Value: "v2",
})
kvPairs = append(kvPairs, &commonpb.KeyValuePair{Key: "k1", Value: "v1"}, &commonpb.KeyValuePair{Key: "k2", Value: "v2"})
err := baseParams.LoadFromKVPair(kvPairs)
assert.Nil(t, err)