Skip to content

Commit 583a23e

Browse files
committed
fix: use http_mock_host
1 parent 14ea39e commit 583a23e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

nix/ext/tests/http.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ pkgs.testers.runNixOSTest {
284284
CREATE TABLE IF NOT EXISTS test_config (key TEXT PRIMARY KEY, value TEXT);
285285
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_port'"'"', '"'"'{http_port}'"'"')
286286
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
287+
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_host'"'"', '"'"'localhost'"'"')
288+
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
287289
'
288290
""")
289291
@@ -317,6 +319,8 @@ pkgs.testers.runNixOSTest {
317319
sudo -u postgres psql -d postgres -c '
318320
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_port'"'"', '"'"'{http_port}'"'"')
319321
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
322+
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_host'"'"', '"'"'localhost'"'"')
323+
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
320324
'
321325
""")
322326
@@ -345,6 +349,8 @@ pkgs.testers.runNixOSTest {
345349
sudo -u postgres psql -d postgres -c '
346350
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_port'"'"', '"'"'{http_port}'"'"')
347351
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
352+
INSERT INTO test_config (key, value) VALUES ('"'"'http_mock_host'"'"', '"'"'localhost'"'"')
353+
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;
348354
'
349355
""")
350356
installed_extensions=test.run_sql("""SELECT extname FROM pg_extension WHERE extname = 'orioledb';""")

0 commit comments

Comments
 (0)