Skip to content

Commit

Permalink
Parallel test all the things :D
Browse files Browse the repository at this point in the history
  • Loading branch information
Glib Smaga committed Mar 2, 2017
1 parent a84bd44 commit 7e1d610
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dig/graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,16 @@ func TestConcurrentAccess(t *testing.T) {
}

func TestCycles(t *testing.T) {
t.Parallel()
g := New()

type Type1 interface{}
type Type2 interface{}
type Type3 interface{}
c1 := func(t2 Type2) Type1 { return nil }
c2 := func(t3 Type3) Type2 { return nil }
c3 := func(t1 Type1) Type3 { return nil }

g := New()

require.NoError(t, g.Register(c1))
require.NoError(t, g.Register(c2))

Expand Down

0 comments on commit 7e1d610

Please sign in to comment.