Skip to content

Commit

Permalink
Merge pull request #45 from kanmu/add_test2
Browse files Browse the repository at this point in the history
Add TestWorkerPoolSingleQueueMultiDB for v5
  • Loading branch information
winebarrel authored Oct 15, 2024
2 parents ca22d6c + fc68afe commit 8766569
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 44 deletions.
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

0 comments on commit 8766569

Please sign in to comment.