Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #65 from muesli/linter-fixes
Browse files Browse the repository at this point in the history
Unlambda test functions
  • Loading branch information
ernado authored Jul 22, 2019
2 parents 0993231 + 68f3da9 commit 03fca5e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 2 additions & 6 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,7 @@ func TestClientRTOAgentErr(t *testing.T) {
connL, connR := net.Pipe()
defer connL.Close()
collector := new(manualCollector)
clock := callbackClock(func() time.Time {
return time.Now()
})
clock := callbackClock(time.Now)
agent := &manualAgent{}
attempt := 0
gotReads := make(chan struct{})
Expand Down Expand Up @@ -1341,9 +1339,7 @@ func TestClient_HandleProcessError(t *testing.T) {
connL, connR := net.Pipe()
defer connL.Close()
collector := new(manualCollector)
clock := callbackClock(func() time.Time {
return time.Now()
})
clock := callbackClock(time.Now)
agent := &manualAgent{}
gotWrites := make(chan struct{})
processCalled := make(chan struct{}, 1)
Expand Down
4 changes: 1 addition & 3 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,7 @@ func TestMessage_ForEach(t *testing.T) {
m = newMessage()
var realm Realm
testutil.ShouldNotAllocate(t, func() {
if err := m.ForEach(AttrRealm, func(m *Message) error {
return realm.GetFrom(m)
}); err != nil {
if err := m.ForEach(AttrRealm, realm.GetFrom); err != nil {
t.Fatal(err)
}
})
Expand Down

0 comments on commit 03fca5e

Please sign in to comment.