Skip to content

Commit

Permalink
Merge pull request #41 from kanmu/add_workerpool_test
Browse files Browse the repository at this point in the history
Add workerpool test
  • Loading branch information
winebarrel authored Oct 11, 2024
2 parents b9e1a96 + 6dd37db commit 7f6e809
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- v4
pull_request:

concurrency:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: test
test: vet
go test -v ./...
go test -v ./... -count 1

.PHONY: vet
vet:
Expand Down
13 changes: 13 additions & 0 deletions schema.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DROP TABLE IF EXISTS que_jobs;

CREATE TABLE que_jobs
(
priority smallint NOT NULL DEFAULT 100,
Expand All @@ -13,3 +15,14 @@ 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)
);
Loading

0 comments on commit 7f6e809

Please sign in to comment.