Skip to content

Commit

Permalink
update router test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreystoke committed Jan 3, 2018
1 parent 8a21f38 commit e96999b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

func TestTextRouter_Dispatch(t *testing.T) {
r := &TextRouter{}
r := NewTextRouter()
count := 0
testTopics := make(map[string]string)
const topicCount = 1000
Expand Down Expand Up @@ -61,7 +61,7 @@ func TestTextRouter_Dispatch(t *testing.T) {
}

func TestRegexRouter_Dispatch(t *testing.T) {
r := &RegexRouter{}
r := NewRegexRouter()
allCount, prefixCount, numCount := 0, 0, 0

r.Handle(".*", func(topic string, code SubAckCode, msg []byte) {
Expand Down

0 comments on commit e96999b

Please sign in to comment.