test: add test for duplicate entries in pg_description with same OID

This commit is contained in:
Taimoor Zaeem
2025-05-14 09:31:48 -05:00
committed by Steve Chavez
parent 8390df0fa5
commit 8b63ea82ec
3 changed files with 25 additions and 2 deletions
+2 -2
View File
@@ -42,10 +42,10 @@ pgErrorCodeMapping = do
it "works with SchemaCache error" $
get "/non_existent_table"
`shouldRespondWith`
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.json_table'","message":"Could not find the table 'test.non_existent_table' in the schema cache"} |]
[json| {"code":"PGRST205","details":null,"hint":"Perhaps you meant the table 'test.collision_test_table'","message":"Could not find the table 'test.non_existent_table' in the schema cache"} |]
{ matchStatus = 404
, matchHeaders = [ "Proxy-Status" <:> "PostgREST; error=PGRST205"
, "Content-Length" <:> "172" ]
, "Content-Length" <:> "182" ]
}
it "works with Jwt error" $ do