Skip to content

Commit

Permalink
Merge pull request #1738 from yichengq/231
Browse files Browse the repository at this point in the history
*: add rafthttp pkg into test list
  • Loading branch information
xiang90 committed Nov 18, 2014
2 parents 1635844 + 04d4162 commit 6cac631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions rafthttp/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func TestServeRaft(t *testing.T) {
}
req.Header.Set("X-Etcd-Cluster-ID", tt.clusterID)
rw := httptest.NewRecorder()
h := NewHandler(tt.p, types.ID(0), &nopStats{})
h := NewHandler(tt.p, types.ID(0))
h.ServeHTTP(rw, req)
if rw.Code != tt.wcode {
t.Errorf("#%d: got code=%d, want %d", i, rw.Code, tt.wcode)
Expand All @@ -172,10 +172,6 @@ type errProcessor struct {

func (p *errProcessor) Process(ctx context.Context, m raftpb.Message) error { return p.err }

type nopStats struct{}

func (s *nopStats) UpdateRecvApp(from types.ID, length int64) {}

type resWriterToError struct {
code int
}
Expand Down
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COVER=${COVER:-"-cover"}
source ./build

# Hack: gofmt ./ will recursively check the .git directory. So use *.go for gofmt.
TESTABLE_AND_FORMATTABLE="client discovery error etcdctl/command etcdmain etcdserver etcdserver/etcdhttp etcdserver/etcdhttp/httptypes etcdserver/etcdserverpb integration migrate pkg/flags pkg/types pkg/transport pkg/wait proxy raft snap store wal"
TESTABLE_AND_FORMATTABLE="client discovery error etcdctl/command etcdmain etcdserver etcdserver/etcdhttp etcdserver/etcdhttp/httptypes etcdserver/etcdserverpb integration migrate pkg/flags pkg/types pkg/transport pkg/wait proxy raft rafthttp snap store wal"
FORMATTABLE="$TESTABLE_AND_FORMATTABLE *.go etcdctl/"

# user has not provided PKG override
Expand Down

0 comments on commit 6cac631

Please sign in to comment.