aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/transport/common_test.go')
-rw-r--r--plumbing/transport/common_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/plumbing/transport/common_test.go b/plumbing/transport/common_test.go
index 9ca4459..e9a5efa 100644
--- a/plumbing/transport/common_test.go
+++ b/plumbing/transport/common_test.go
@@ -3,6 +3,8 @@ package transport
import (
"testing"
+ "gopkg.in/src-d/go-git.v4/plumbing/protocol/packp/capability"
+
. "gopkg.in/check.v1"
)
@@ -29,3 +31,11 @@ func (s *SuiteCommon) TestNewEndpointWrongForgat(c *C) {
c.Assert(err, Not(IsNil))
c.Assert(e.Host, Equals, "")
}
+
+func (s *SuiteCommon) TestFilterUnsupportedCapabilities(c *C) {
+ l := capability.NewList()
+ l.Set(capability.MultiACK)
+
+ FilterUnsupportedCapabilities(l)
+ c.Assert(l.Supports(capability.MultiACK), Equals, false)
+}