Skip to content

Commit f203be9

Browse files
authored
Merge pull request #32 from syossan27/fix/small-error
Fix small error
2 parents 0f3cc33 + 5ea4b55 commit f203be9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: death_unix_test.go

+7-6
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ package death
44

55
import (
66
"errors"
7-
log "github.com/cihub/seelog"
8-
. "github.com/smartystreets/goconvey/convey"
97
"os"
108
"syscall"
119
"testing"
1210
"time"
11+
12+
"github.com/cihub/seelog"
13+
. "github.com/smartystreets/goconvey/convey"
1314
)
1415

1516
type Unhashable map[string]interface{}
@@ -19,7 +20,7 @@ func (u Unhashable) Close() error {
1920
}
2021

2122
func TestDeath(t *testing.T) {
22-
defer log.Flush()
23+
defer seelog.Flush()
2324

2425
Convey("Validate death handles unhashable types", t, func() {
2526
u := make(Unhashable)
@@ -59,7 +60,7 @@ func TestDeath(t *testing.T) {
5960
death.WaitForDeath(closeMe)
6061
So(closeMe.Closed, ShouldEqual, 1)
6162
})
62-
63+
6364
Convey("Validate multiple sword falls do not block even after we have exited waitForDeath", t, func() {
6465
death := NewDeath(syscall.SIGHUP)
6566
closeMe := &CloseMe{}
@@ -69,7 +70,7 @@ func TestDeath(t *testing.T) {
6970
death.FallOnSword()
7071
death.FallOnSword()
7172
So(closeMe.Closed, ShouldEqual, 1)
72-
})
73+
})
7374

7475
Convey("Validate death gives up after timeout", t, func() {
7576
death := NewDeath(syscall.SIGHUP)
@@ -160,5 +161,5 @@ type CloseMe struct {
160161

161162
func (c *CloseMe) Close() error {
162163
c.Closed++
163-
return errors.New("I've been closed!")
164+
return errors.New("I have been closed")
164165
}

0 commit comments

Comments
 (0)