Skip to content

Commit

Permalink
Updated the names of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterclaerhout committed Oct 21, 2019
1 parent dcc32f8 commit 5e60bf3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion errgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/pieterclaerhout/go-waitgroup"
)

func Test_ErrorGroup_Add(t *testing.T) {
func TestErrorGroupAdd(t *testing.T) {

type test struct {
name string
Expand Down
8 changes: 5 additions & 3 deletions waitgroup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/pieterclaerhout/go-waitgroup"
)

func Test_WaitGroup(t *testing.T) {
func TestWaitGroup(t *testing.T) {

type test struct {
name string
Expand Down Expand Up @@ -43,7 +43,7 @@ func Test_WaitGroup(t *testing.T) {

}

func Test_WaitGroup_Add(t *testing.T) {
func TestWaitGroupAdd(t *testing.T) {

type test struct {
name string
Expand All @@ -60,7 +60,9 @@ func Test_WaitGroup_Add(t *testing.T) {
wg := waitgroup.NewWaitGroup(tc.size)
assert.NotNil(t, wg)

wg.Add(func() {})
wg.Add(func() {
// Doing nothing here
})

wg.Wait()

Expand Down

0 comments on commit 5e60bf3

Please sign in to comment.