Skip to content

Commit a87cdff

Browse files
committed
fix experiment test
1 parent 6eff599 commit a87cdff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/integration/table_bulk_upsert_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,18 @@ func TestTableBulkUpsert(t *testing.T) {
7878
}
7979

8080
func 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)),

0 commit comments

Comments
 (0)