File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,18 +78,18 @@ func TestTableBulkUpsert(t *testing.T) {
7878}
7979
8080func TestTableBulkUpsertGrpcMaxMessageSize (t * testing.T ) {
81- const KB = 1024
81+ const MB = 1024 * 1024
8282
8383 var (
8484 scope = newScope (t )
85- driver = scope .Driver (ydb .WithGrpcMaxMessageSize (2 * KB ))
85+ driver = scope .Driver (ydb .WithGrpcMaxMessageSize (10 * MB ))
8686 tablePath = scope .TablePath ()
8787 )
8888
89- s := strings .Repeat ("a" , 1 * KB )
89+ s := strings .Repeat ("a" , 5 * MB )
9090
9191 var rows []types.Value
92- for i := int64 (0 ); i < 10 ; i ++ { // => 10 KB the whole request
92+ for i := int64 (0 ); i < 10 ; i ++ { // => 50MB the whole request
9393 rows = append (rows , types .StructValue (
9494 types .StructFieldValue ("id" , types .Int64Value (i )),
9595 types .StructFieldValue ("val" , types .TextValue (s )),
You can’t perform that action at this time.
0 commit comments