Skip to content

Commit

Permalink
Merge pull request #16 from alitto/feature/1.6.0
Browse files Browse the repository at this point in the history
Upgrade to go v1.17
  • Loading branch information
alitto committed Nov 20, 2021
2 parents a8db74f + fc8bba0 commit a646d99
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ go:
- 1.14.x
- 1.15.x
- 1.16.x
- 1.17.x

# Enable Go Modules
env:
Expand Down
2 changes: 1 addition & 1 deletion examples/dynamic_size/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/dynamic_size

go 1.16
go 1.17

require (
github.com/alitto/pond v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion examples/fixed_size/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/fixed_size

go 1.16
go 1.17

require (
github.com/alitto/pond v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion examples/prometheus/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/fixed_size

go 1.16
go 1.17

require (
github.com/alitto/pond v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion examples/task_group/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/alitto/pond/examples/task_group

go 1.16
go 1.17

require (
github.com/alitto/pond v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/alitto/pond

go 1.16
go 1.17
8 changes: 4 additions & 4 deletions pond_blackbox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,16 @@ func TestSubmitBefore(t *testing.T) {

// Submit a long-running task
var doneCount int32
pool.SubmitBefore(func() {
time.Sleep(5 * time.Millisecond)
pool.Submit(func() {
time.Sleep(50 * time.Millisecond)
atomic.AddInt32(&doneCount, 1)
}, 1*time.Millisecond)
})

// Submit a task that times out after 2ms
pool.SubmitBefore(func() {
time.Sleep(5 * time.Millisecond)
atomic.AddInt32(&doneCount, 1)
}, 2*time.Millisecond)
}, 5*time.Millisecond)

pool.StopAndWait()

Expand Down

0 comments on commit a646d99

Please sign in to comment.