Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(563)

Unified Diff: replicaset/replicaset_test.go

Issue 85970044: clone session in replicaset.Initiate
Patch Set: clone session in replicaset.Initiate Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « replicaset/replicaset.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: replicaset/replicaset_test.go
=== modified file 'replicaset/replicaset_test.go'
--- replicaset/replicaset_test.go 2014-03-28 18:10:58 +0000
+++ replicaset/replicaset_test.go 2014-04-09 16:38:25 +0000
@@ -102,9 +102,13 @@
session := root.MustDialDirect()
defer session.Close()
+ mode := session.Mode()
err := Initiate(session, root.Addr(), name)
c.Assert(err, gc.IsNil)
+ // make sure we haven't messed with the session's mode
+ c.Assert(session.Mode(), gc.Equals, mode)
+
// Ids start at 1 for us, so we can differentiate between set and unset
expectedMembers := []Member{Member{Id: 1, Address: root.Addr()}}
« no previous file with comments | « replicaset/replicaset.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b