Skip to content

Commit aa05fa4

Browse files
author
Thomas Bruyelle
committed
PingSsl test
1 parent f784dc1 commit aa05fa4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

session_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ func (s *S) TestPing(c *C) {
8787
c.Assert(stats.ReceivedOps, Equals, 1)
8888
}
8989

90+
func (s *S) TestPingSsl(c *C) {
91+
session, err := mgo.Dial("localhost:40001?ssl=true")
92+
c.Assert(err, IsNil)
93+
defer session.Close()
94+
95+
c.Assert(session.Ping(), IsNil)
96+
}
97+
9098
func (s *S) TestDialIPAddress(c *C) {
9199
session, err := mgo.Dial("127.0.0.1:40001")
92100
c.Assert(err, IsNil)

0 commit comments

Comments
 (0)