Skip to content

Commit

Permalink
fixed inconsistencies after cherry picks
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdigest committed Jan 29, 2019
1 parent 31fe6e7 commit 8957e77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions mock_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type unsafeMocker struct {
}

func (um *unsafeMocker) MinimockWait(time.Duration) {
um.tester.FailNow()
um.tester.Fatalf("format")
}

type unsafeTester struct {
Expand All @@ -82,6 +82,6 @@ type unsafeTester struct {
finished bool
}

func (u *unsafeTester) FailNow() {
func (u *unsafeTester) Fatalf(string, ...interface{}) {
u.finished = true
}
8 changes: 0 additions & 8 deletions safe_tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,3 @@ func (st *safeTester) Fatalf(format string, args ...interface{}) {

st.Tester.Fatalf(format, args...)
}

// FailNow implements Tester
func (st *safeTester) FailNow() {
st.m.Lock()
defer st.m.Unlock()

st.Tester.FailNow()
}

0 comments on commit 8957e77

Please sign in to comment.