Skip to content

Commit

Permalink
Update the user and password in the test file
Browse files Browse the repository at this point in the history
  • Loading branch information
chtushar committed May 29, 2024
1 parent f0a587f commit d597440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ jobs:
- uses: harmon758/postgresql-action@v1
with:
postgresql version: '14'
postgresql user: 'tester'
postgresql password: 'password'

- name: Test MySQL Connection
run: mysql -h localhost -u root -e 'SELECT version()'

- name: Test Postgres Connection
run: psql
run: psql -h localhost -U root -c 'SELECT version()'

- name: Create test DB
run: mysql -h localhost -u root -e 'CREATE DATABASE test_db'

- name: Create test DB
run: psql -h localhost -U tester -c 'CREATE DATABASE testdb'
run: psql -h localhost -U root -c 'CREATE DATABASE testdb'

- name: 🛎 Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion tests/pg.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, beforeAll, afterAll, expect, test } from 'vitest';
import { Client } from 'pg';
import { OpenAPM, getMetricClient } from '../src/OpenAPM';

let connectionUri = 'postgres://tester:password@localhost:5432/testdb';
let connectionUri = 'postgres://root:password@localhost:5432/testdb';

describe('pg', () => {
let client;
Expand Down

0 comments on commit d597440

Please sign in to comment.