Skip to content

Commit

Permalink
Merge pull request #16 from joeirimpan/master
Browse files Browse the repository at this point in the history
docs: Replace circle CI with github badges
  • Loading branch information
knadh committed Apr 27, 2021
2 parents 33d1567 + 80b7801 commit adc3a32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

# SQL Jobber

![CircleCI (all branches)](https://img.shields.io/circleci/project/github/knadh/sql-jobber.svg)
![test workflow](https://github.com/knadh/sql-jobber/actions/workflows/test.yml/badge.svg)
![release workflow](https://github.com/knadh/sql-jobber/actions/workflows/release.yml/badge.svg)

A highly opinionated, distributed job-queue built specifically for defering and executing SQL read query jobs.

Expand Down
4 changes: 2 additions & 2 deletions cmd/jobber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func TestPostTask(t *testing.T) {

// Try getting the status without waiting for the job to finish
testRequest(t, "GET", "/jobs/my_job", nil, &dest)
assert.Contains(t, []string{"PENDING", "RECEIVED"}, dest.Data.(map[string]interface{})["state"])
assert.Contains(t, []string{"PENDING", "RECEIVED", "STARTED"}, dest.Data.(map[string]interface{})["state"])

// Lets wait till the query finishes
time.Sleep(time.Duration(2 * time.Second))
Expand Down Expand Up @@ -338,7 +338,7 @@ func TestPostJobGroup(t *testing.T) {

// fetch for job group status
testRequest(t, "GET", "/groups/my_job_group_1", nil, &dest)
assert.Equal(t, "PENDING", dest.Data.(map[string]interface{})["state"].(string))
assert.Contains(t, []string{"PENDING", "RECEIVED", "STARTED"}, dest.Data.(map[string]interface{})["state"].(string))

// Lets wait till the query finishes
time.Sleep(time.Duration(2 * time.Second))
Expand Down

0 comments on commit adc3a32

Please sign in to comment.