Merge pull request #11279 from YoyinZyc/stream-version-test

rafthttp: add test stream support for current version.
This commit is contained in:
Jingyi Hu 2019-10-21 17:33:43 -07:00 committed by GitHub
commit 342b58ba31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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