From 8aa28b08ed3ef561190199cbef367e378490d14b 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 | 4 ++-- e2e_test/source/cdc/cdc.share_stream.slt | 6 +++--- e2e_test/source/cdc/postgres_cdc.sql | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ci/docker-compose.yml b/ci/docker-compose.yml index 66b3ea3eb4bc..3ae6995514d2 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 446fc7f04b09..b0559d948c0e 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 13c9c69ed7fa..599394c8a004 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) @@ -255,6 +255,6 @@ create table orders ( username = '${PGUSER:$USER}', password = '${PGPASSWORD:}', database.name = '${PGDATABASE:postgres}', - table.name = 'Order', + table.name = 'Orders', slot.name = 'orders' ); diff --git a/e2e_test/source/cdc/cdc.share_stream.slt b/e2e_test/source/cdc/cdc.share_stream.slt index 314555e67a3f..b180a67c2cb2 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 9dff91c179ac..20b6e7b41446 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');