rafthttp: add test stream support for current version.

This commit is contained in:
yoyinzyc 2019-10-18 10:54:26 -07:00
parent 5dc12f2725
commit 80a177292e

View File

@ -380,6 +380,14 @@ func TestCheckStreamSupport(t *testing.T) {
}
}
func TestStreamSupportCurrentVersion(t *testing.T) {
cv := version.Cluster(version.Version)
cv = cv + ".0"
if _, ok := supportedStream[cv]; !ok {
t.Errorf("Current version does not have stream support.")
}
}
type fakeWriteFlushCloser struct {
mu sync.Mutex
err error