Skip to content

Commit

Permalink
troubleshooting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 11, 2024
1 parent bc6caa2 commit af620f6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions bbot/test/test_step_2/module_tests/test_module_postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ async def setup_before_prep(self, module_test):
"5432:5432",
"-d",
"postgres",
stdout=asyncio.subprocess.PIPE,
stderr=asyncio.subprocess.PIPE,
)
stdout, stderr = await process.communicate()

import asyncpg

Expand All @@ -35,7 +32,7 @@ async def setup_before_prep(self, module_test):
try:
# Connect to the default 'postgres' database to create 'bbot'
conn = await asyncpg.connect(
user="postgres", password="bbotislife", database="postgres", host="localhost"
user="postgres", password="bbotislife", database="postgres", host="127.0.0.1"
)
await conn.execute("CREATE DATABASE bbot")
await conn.close()
Expand All @@ -56,7 +53,7 @@ async def check(self, module_test, events):
import asyncpg

# Connect to the PostgreSQL database
conn = await asyncpg.connect(user="postgres", password="bbotislife", database="bbot", host="localhost")
conn = await asyncpg.connect(user="postgres", password="bbotislife", database="bbot", host="127.0.0.1")

try:
events = await conn.fetch("SELECT * FROM event")
Expand Down

0 comments on commit af620f6

Please sign in to comment.