Skip to content

Commit

Permalink
Fix go vet warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyie committed Jan 23, 2017
1 parent f985ec9 commit 2d945f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ func TestBasic(t *testing.T) {
sessionWait.Add(2)
go func() {
if err := sessionYin.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
go func() {
if err := sessionYang.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down Expand Up @@ -126,7 +126,7 @@ func TestReadError(t *testing.T) {
sessionWait.Add(1)
go func() {
if err := sessionYin.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down Expand Up @@ -155,7 +155,7 @@ func TestWriteError(t *testing.T) {
sessionWait.Add(1)
go func() {
if err := sessionYin.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestWriteError2(t *testing.T) {
sessionWait.Add(1)
go func() {
if err := sessionYang.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down Expand Up @@ -245,7 +245,7 @@ func TestReadBodyError(t *testing.T) {
sessionWait.Add(1)
go func() {
if err := sessionYin.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down Expand Up @@ -297,13 +297,13 @@ func TestConcurrent(t *testing.T) {
sessionWait.Add(2)
go func() {
if err := sessionYin.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
go func() {
if err := sessionYang.Serve(); err != nil {
t.Fatal("Eventloop error: %v", err)
t.Fatalf("Eventloop error: %v", err)
}
sessionWait.Done()
}()
Expand Down

0 comments on commit 2d945f4

Please sign in to comment.