From 737440234359ea85fbbb080e63b852ffb89e8a63 Mon Sep 17 00:00:00 2001 From: Kexiang Wang Date: Mon, 22 Jul 2024 20:26:24 -0400 Subject: [PATCH] fix test --- ci/docker-compose.yml | 2 +- e2e_test/source/cdc/cdc.check.slt | 2 +- e2e_test/source/cdc/cdc.load.slt | 2 +- e2e_test/source/cdc/cdc.share_stream.slt | 6 +++--- e2e_test/source/cdc/postgres_cdc.sql | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ci/docker-compose.yml b/ci/docker-compose.yml index 66b3ea3eb4bc6..3ae6995514d26 100644 --- a/ci/docker-compose.yml +++ b/ci/docker-compose.yml @@ -12,7 +12,7 @@ services: interval: 5s timeout: 5s retries: 5 - command: [ "postgres", "-c", "wal_level=logical" ] + command: [ "postgres", "-c", "wal_level=logical", "-c", "max_replication_slots=30" ] mysql: image: mysql:8.0 diff --git a/e2e_test/source/cdc/cdc.check.slt b/e2e_test/source/cdc/cdc.check.slt index 446fc7f04b092..b0559d948c0ef 100644 --- a/e2e_test/source/cdc/cdc.check.slt +++ b/e2e_test/source/cdc/cdc.check.slt @@ -77,6 +77,6 @@ select * from enum_to_varchar order by id; 2 ok query II -select * from orders order by id; +select * from upper_orders order by id; ---- 1 happy diff --git a/e2e_test/source/cdc/cdc.load.slt b/e2e_test/source/cdc/cdc.load.slt index 13c9c69ed7fa7..128dc7e13d125 100644 --- a/e2e_test/source/cdc/cdc.load.slt +++ b/e2e_test/source/cdc/cdc.load.slt @@ -244,7 +244,7 @@ create table enum_to_varchar ( ); statement ok -create table orders ( +create table upper_orders ( id int, name varchar, PRIMARY KEY (id) diff --git a/e2e_test/source/cdc/cdc.share_stream.slt b/e2e_test/source/cdc/cdc.share_stream.slt index 314555e67a3fe..b180a67c2cb2a 100644 --- a/e2e_test/source/cdc/cdc.share_stream.slt +++ b/e2e_test/source/cdc/cdc.share_stream.slt @@ -269,9 +269,9 @@ CREATE TABLE person_new ( ) FROM pg_source TABLE 'person'; statement ok -CREATE TABLE orders_shared ( +CREATE TABLE upper_orders_shared ( id int PRIMARY KEY, - name varchar, + name varchar ) FROM pg_source TABLE 'public.Orders'; statement ok @@ -517,6 +517,6 @@ select * from enum_to_varchar_shared order by id; 2 ok query II -select * from orders_shared order by id; +select * from upper_orders_shared order by id; ---- 1 happy diff --git a/e2e_test/source/cdc/postgres_cdc.sql b/e2e_test/source/cdc/postgres_cdc.sql index 9dff91c179acc..20b6e7b414469 100644 --- a/e2e_test/source/cdc/postgres_cdc.sql +++ b/e2e_test/source/cdc/postgres_cdc.sql @@ -109,6 +109,6 @@ INSERT INTO list_with_null VALUES (5, NULL, NULL, NULL, NULL, NULL, NULL, NULL); CREATE TABLE "Orders" ( id int PRIMARY KEY, - name varchar, + name varchar ); INSERT INTO "Orders" VALUES (1, 'happy');