@@ -86,15 +86,15 @@ func (s *StoreSuite) TestStoreInsertUpdateMustFind() {
8686 s .Nil (err )
8787 s .NotPanics (func () {
8888 s .Equal ("foo" , store .MustFindOne (NewStoreWithConstructFixtureQuery ()).Foo )
89- }, "TODO: https://github.com/src-d/go-kallax/issues/49" )
89+ })
9090
9191 doc .Foo = "bar"
9292 updatedRows , err := store .Update (doc )
9393 s .Nil (err )
9494 s .True (updatedRows > 0 )
9595 s .NotPanics (func () {
9696 s .Equal ("bar" , store .MustFindOne (NewStoreWithConstructFixtureQuery ()).Foo )
97- }, "TODO: https://github.com/src-d/go-kallax/issues/49" )
97+ })
9898}
9999
100100func (s * StoreSuite ) TestStoreSave () {
@@ -107,15 +107,15 @@ func (s *StoreSuite) TestStoreSave() {
107107 s .True (doc .IsPersisted ())
108108 s .NotPanics (func () {
109109 s .Equal ("foo" , store .MustFindOne (NewStoreWithConstructFixtureQuery ()).Foo )
110- }, "TODO: https://github.com/src-d/go-kallax/issues/49" )
110+ })
111111
112112 doc .Foo = "bar"
113113 updated , err = store .Save (doc )
114114 s .Nil (err )
115115 s .True (updated )
116116 s .NotPanics (func () {
117117 s .Equal ("bar" , store .MustFindOne (NewStoreWithConstructFixtureQuery ()).Foo )
118- }, "TODO: https://github.com/src-d/go-kallax/issues/49" )
118+ })
119119}
120120
121121func (s * StoreSuite ) TestMultiKeySort () {
@@ -169,16 +169,13 @@ func (s *StoreSuite) TestMultiKeySort() {
169169 s .Len (documents , 4 )
170170 success := true
171171 for _ , doc := range documents {
172- if ! s .NotNil (doc , "TODO: https://github.com/src-d/go-kallax/issues/49" ) {
172+ if ! s .NotNil (doc ) {
173173 success = false
174174 }
175175 }
176176
177177 if ! success {
178- s .Fail (
179- `Testcase aborted. All retrieved Documents should be not-nil
180- TODO: https://github.com/src-d/go-kallax/issues/49` ,
181- )
178+ s .Fail ("Testcase aborted. All retrieved Documents should be not-nil" )
182179 return
183180 }
184181
@@ -188,7 +185,6 @@ func (s *StoreSuite) TestMultiKeySort() {
188185 s .Equal ("2001-2012" , documents [3 ].Name )
189186}
190187
191- // TODO: https://github.com/src-d/go-kallax/issues/49
192188func (s * StoreSuite ) TestFindOne () {
193189 store := NewStoreWithConstructFixtureStore (s .db )
194190
@@ -198,7 +194,7 @@ func (s *StoreSuite) TestFindOne() {
198194 query := NewStoreWithConstructFixtureQuery ()
199195 docFound , err := store .FindOne (query )
200196 s .resultOrError (docFound , err )
201- if s .NotNil (docFound , "TODO: https://github.com/src-d/go-kallax/issues/49" ) {
197+ if s .NotNil (docFound ) {
202198 s .Equal (docInserted .Foo , docFound .Foo )
203199 }
204200}
0 commit comments