Skip to content

Commit

Permalink
rename mock pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
travisjeffery committed Oct 19, 2017
1 parent 67d809b commit b3ee3c6
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions broker/broker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/travisjeffery/jocko"
"github.com/travisjeffery/jocko/protocol"
"github.com/travisjeffery/jocko/testutil/mocks"
"github.com/travisjeffery/jocko/testutil/mock"
"github.com/travisjeffery/simplelog"
)

Expand Down Expand Up @@ -557,7 +557,7 @@ func TestBroker_isController(t *testing.T) {
{
name: "is leader",
fields: fields{
raft: &mocks.Raft{
raft: &mock.Raft{
IsLeaderFn: func() bool {
return true
},
Expand Down
6 changes: 3 additions & 3 deletions broker/replicator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"github.com/travisjeffery/jocko"
"github.com/travisjeffery/jocko/broker"
"github.com/travisjeffery/jocko/testutil"
"github.com/travisjeffery/jocko/testutil/mocks"
"github.com/travisjeffery/jocko/testutil/mock"
)

func TestBroker_Replicate(t *testing.T) {
clog := mocks.NewCommitLog()
leader := mocks.NewClient(4)
clog := mock.NewCommitLog()
leader := mock.NewClient(4)

p := &jocko.Partition{
Topic: "test",
Expand Down
2 changes: 1 addition & 1 deletion testutil/mocks/commitlog.go → testutil/mock/commitlog.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mocks
package mock

import (
"io"
Expand Down
2 changes: 1 addition & 1 deletion testutil/mocks/proxy.go → testutil/mock/proxy.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mocks
package mock

import (
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion testutil/mocks/raft.go → testutil/mock/raft.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mocks
package mock

import "github.com/travisjeffery/jocko"

Expand Down
2 changes: 1 addition & 1 deletion testutil/mocks/serf.go → testutil/mock/serf.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package mocks
package mock

import "github.com/travisjeffery/jocko"

Expand Down

0 comments on commit b3ee3c6

Please sign in to comment.