@@ -177,8 +177,11 @@ defmodule Realtime.Extensions.PostgresCdcRls.SubscriptionsTest do
177177 assert { :ok , [ % Postgrex.Result { } ] } =
178178 Subscriptions . create ( conn , "supabase_realtime_test" , params_list , self ( ) , self ( ) )
179179
180- % Postgrex.Result { rows: [ [ [ ] , "*" ] ] } =
181- Postgrex . query! ( conn , "select filters, action_filter from realtime.subscription" , [ ] )
180+ assert % Postgrex.Result { rows: rows } =
181+ Postgrex . query! ( conn , "select filters, action_filter from realtime.subscription" , [ ] )
182+
183+ assert rows != [ ]
184+ assert Enum . all? ( rows , & match? ( [ [ ] , "*" ] , & 1 ) )
182185 end
183186
184187 test "user can subscribe to only INSERT events" , % { conn: conn } do
@@ -192,8 +195,11 @@ defmodule Realtime.Extensions.PostgresCdcRls.SubscriptionsTest do
192195 assert { :ok , [ % Postgrex.Result { } ] } =
193196 Subscriptions . create ( conn , "supabase_realtime_test" , params_list , self ( ) , self ( ) )
194197
195- % Postgrex.Result { rows: [ [ [ ] , "INSERT" ] ] } =
196- Postgrex . query! ( conn , "select filters, action_filter from realtime.subscription" , [ ] )
198+ assert % Postgrex.Result { rows: rows } =
199+ Postgrex . query! ( conn , "select filters, action_filter from realtime.subscription" , [ ] )
200+
201+ assert rows != [ ]
202+ assert Enum . all? ( rows , & match? ( [ [ ] , "INSERT" ] , & 1 ) )
197203 end
198204
199205 test "user can subscribe to a specific table" , % { conn: conn } do
0 commit comments