From 80a177292e8c0fa3128e6c7300b837c5eafb1d32 Mon Sep 17 00:00:00 2001 From: yoyinzyc Date: Fri, 18 Oct 2019 10:54:26 -0700 Subject: [PATCH] rafthttp: add test stream support for current version. --- etcdserver/api/rafthttp/stream_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etcdserver/api/rafthttp/stream_test.go b/etcdserver/api/rafthttp/stream_test.go index 56b3e7fe0..21d69fe53 100644 --- a/etcdserver/api/rafthttp/stream_test.go +++ b/etcdserver/api/rafthttp/stream_test.go @@ -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