Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
edlouth committed Nov 13, 2023
1 parent 77b18b6 commit bc6ae5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grai-server/app/connections/tests/test_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,8 @@ def test_run_update_server_postgres_wrong_password(self, test_workspace, test_po
assert (
run.metadata["message"]
== 'connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: password authentication failed for user "grai"\n'
or run.metadata["message"]
== 'connection to server at "127.0.0.1", port 5432 failed: FATAL: password authentication failed for user "grai"'
)

def test_run_update_server_postgres_no_database(self, test_workspace, test_postgres_connector, test_source):
Expand Down Expand Up @@ -287,7 +289,7 @@ def test_run_update_server_postgres_no_database(self, test_workspace, test_postg
run.metadata["message"]
== 'connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: database "wrong" does not exist\n'
or run.metadata["message"]
== 'connection to server at "127.0.0.1", port 5432 failed: FATAL: password authentication failed for user "grai"'
== 'connection to server at "127.0.0.1", port 5432 failed: FATAL: database "wrong" does not exist'
)

def test_run_update_server_no_connector(self, test_workspace, test_connector, test_source):
Expand Down

0 comments on commit bc6ae5c

Please sign in to comment.