Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TestWorkerPoolSingleQueueMultiDB for v5 #45

Merged
merged 6 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cache: false

- name: Lint
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6

- name: Prepare test database
run: make db
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ db:
.PHONY: table
table:
psql -U qgtest -h localhost -d qgtest -f schema.sql
psql -U qgtest -h localhost -d qgtest -f schema_test.sql
11 changes: 0 additions & 11 deletions schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,3 @@ CREATE TABLE que_jobs
);

COMMENT ON TABLE que_jobs IS '3';

DROP TABLE IF EXISTS job_test;

CREATE TABLE job_test
(
job_id bigserial NOT NULL,
name text NOT NULL,
queue text NOT NULL,

CONSTRAINT job_test_pkey PRIMARY KEY (job_id)
);
10 changes: 10 additions & 0 deletions schema_test.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DROP TABLE IF EXISTS job_test;

CREATE TABLE job_test
(
job_id bigint NOT NULL,
name text NOT NULL,
value text NOT NULL,

CONSTRAINT job_test_pkey PRIMARY KEY (job_id)
);
Loading