https://github.com/etcd-io/etcd
Revision 28342ae09707c4e33a7ebf57d4bb3bc8aa853a7e authored by Yicheng Qin on 29 June 2015, 17:46:54 UTC, committed by Yicheng Qin on 29 June 2015, 17:46:54 UTC
The original test code before fb4b0b5cf075212f79fcdfa58533915a29c0912d
doesn't work because reader side may update the
stream, while writer side writes message to the old stream and fails.

This PR removes unnecessary call to set term, and avoids this problem to
happen on term > 1 in the future.
1 parent 2afa668
History
Tip revision: 28342ae09707c4e33a7ebf57d4bb3bc8aa853a7e authored by Yicheng Qin on 29 June 2015, 17:46:54 UTC
rafthttp: avoid TestStream to use outdated stream
Tip revision: 28342ae
File Mode Size
Documentation
Godeps
client
discovery
error
etcdctl
etcdmain
etcdserver
hack
integration
logos
migrate
pkg
proxy
raft
rafthttp
scripts
snap
storage
store
tools
version
wal
.dockerignore -rw-r--r-- 5 bytes
.gitignore -rw-r--r-- 107 bytes
.godir -rw-r--r-- 23 bytes
.header -rw-r--r-- 589 bytes
.travis.yml -rw-r--r-- 119 bytes
CONTRIBUTING.md -rw-r--r-- 2.1 KB
DCO -rw-r--r-- 1.4 KB
Dockerfile -rw-r--r-- 47 bytes
LICENSE -rw-r--r-- 11.1 KB
MAINTAINERS -rw-r--r-- 157 bytes
NOTICE -rw-r--r-- 126 bytes
Procfile -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 4.4 KB
ROADMAP.md -rw-r--r-- 1.2 KB
build -rwxr-xr-x 567 bytes
cover -rwxr-xr-x 626 bytes
main.go -rw-r--r-- 1.1 KB
test -rwxr-xr-x 2.1 KB

README.md

back to top