~rogpeppe/+junk/mgo-tagged-log-messages

« back to all changes in this revision

Viewing changes to session_test.go

  • Committer: Roger Peppe
  • Date: 2014-03-14 18:11:33 UTC
  • mfrom: (263.1.8 master)
  • Revision ID: roger.peppe@canonical.com-20140314181133-107ag3xpitk9682u
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
                if session != nil {
116
116
                        session.Close()
117
117
                }
118
 
                c.Assert(err, ErrorMatches, "Unsupported connection URL option: (foo=1|bar=2)")
 
118
                c.Assert(err, ErrorMatches, "unsupported connection URL option: (foo=1|bar=2)")
119
119
        }
120
120
}
121
121
 
2416
2416
        coll := session.DB("mydb").C("mycoll")
2417
2417
 
2418
2418
        err = coll.EnsureIndex(mgo.Index{})
2419
 
        c.Assert(err, ErrorMatches, "Invalid index key:.*")
 
2419
        c.Assert(err, ErrorMatches, "invalid index key:.*")
2420
2420
 
2421
2421
        err = coll.EnsureIndex(mgo.Index{Key: []string{""}})
2422
 
        c.Assert(err, ErrorMatches, "Invalid index key:.*")
 
2422
        c.Assert(err, ErrorMatches, "invalid index key:.*")
2423
2423
}
2424
2424
 
2425
2425
func (s *S) TestEnsureIndexWithUnsafeSession(c *C) {