Skip to content

Commit

Permalink
Make test a bit less race-y
Browse files Browse the repository at this point in the history
  • Loading branch information
evanphx committed Apr 7, 2016
1 parent a15b7f4 commit b08b323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mockery/walker_test.go
@@ -1,11 +1,12 @@
package mockery

import (
"github.com/stretchr/testify/assert"
"os"
"path"
"regexp"
"testing"

"github.com/stretchr/testify/assert"
)

type GatheringVisitor struct {
Expand Down Expand Up @@ -37,7 +38,7 @@ func TestWalkerHere(t *testing.T) {

w.Walk(gv)

assert.Equal(t, 18, len(gv.Interfaces))
assert.True(t, len(gv.Interfaces) > 10)
first := gv.Interfaces[0]
assert.Equal(t, "AsyncProducer", first.Name)
assert.Equal(t, path.Join(wd, "fixtures/async.go"), first.Path)
Expand Down

0 comments on commit b08b323

Please sign in to comment.