Skip to content

Commit e46f391

Browse files
oliricedarora
authored andcommitted
add pg_net tests
1 parent 431fb73 commit e46f391

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

nix/tests/expected/pg_net.out

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- This is a very basic test because you can't get the value returned
2+
-- by a pg_net request in the same transaction that created it;
3+
select
4+
net.http_get (
5+
'https://postman-echo.com/get?foo1=bar1&foo2=bar2'
6+
) as request_id;
7+
request_id
8+
------------
9+
1
10+
(1 row)
11+

nix/tests/sql/pg_net.sql

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
-- This is a very basic test because you can't get the value returned
2+
-- by a pg_net request in the same transaction that created it;
3+
4+
select
5+
net.http_get (
6+
'https://postman-echo.com/get?foo1=bar1&foo2=bar2'
7+
) as request_id;

0 commit comments

Comments
 (0)