Skip to content

Commit eae2a1c

Browse files
committed
fix: specify a single table during tests
1 parent 28b2094 commit eae2a1c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/realtime/extensions/cdc_rls/cdc_rls_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ defmodule Realtime.Extensions.CdcRlsTest do
135135
Postgrex.query!(conn, "SELECT count(*)::int FROM pg_replication_slots WHERE slot_name = $1", [slot_name])
136136

137137
# Re-create the publication: poller should recreate the slot and repopulate oids.
138-
Postgrex.query!(conn, "create publication supabase_realtime_test for all tables", [])
138+
# Use an explicit table (not FOR ALL TABLES, which requires superuser).
139+
Postgrex.query!(conn, "create publication supabase_realtime_test for table public.test", [])
139140
send(poller_pid, :check_oids)
140141
%{oids: oids_after_create} = :sys.get_state(poller_pid)
141142
refute oids_after_create == %{}

0 commit comments

Comments
 (0)