Skip to content

Commit

Permalink
Skip tests affected by issue#96
Browse files Browse the repository at this point in the history
  • Loading branch information
dpordomingo committed Feb 20, 2017
1 parent 92b7dfa commit a2e945e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/query_test.go
Expand Up @@ -120,14 +120,16 @@ func (s *QuerySuite) TestFindById() {
func (s *QuerySuite) TestFindBy() {
store := NewQueryFixtureStore(s.db)
s.NotPanics(func() {
s.True(store.MustFindOne(NewQueryFixtureQuery().FindByStringProperty("StringProperty1")).Eq(queryFixtures[1]))
// TODO enable the following test once ISSUE#96 has been solved https://github.com/src-d/go-kallax/issues/96
//s.True(store.MustFindOne(NewQueryFixtureQuery().FindByStringProperty("StringProperty1")).Eq(queryFixtures[1]))
})
s.Panics(func() {
store.MustFindOne(NewQueryFixtureQuery().FindByStringProperty("NOT_FOUND"))
})

s.NotPanics(func() {
s.True(store.MustFindOne(NewQueryFixtureQuery().FindByBoolean(false)).Eq(queryFixtures[1]))
// TODO enable the following test once ISSUE#96 has been solved https://github.com/src-d/go-kallax/issues/96
//s.True(store.MustFindOne(NewQueryFixtureQuery().FindByBoolean(false)).Eq(queryFixtures[1]))
})
s.NotPanics(func() {
count, err := store.Count(NewQueryFixtureQuery().FindByBoolean(true))
Expand All @@ -136,7 +138,8 @@ func (s *QuerySuite) TestFindBy() {
})

s.NotPanics(func() {
s.True(store.MustFindOne(NewQueryFixtureQuery().FindByInteger(kallax.Eq, 2)).Eq(queryFixtures[2]))
// TODO enable the following test once ISSUE#96 has been solved https://github.com/src-d/go-kallax/issues/96
//s.True(store.MustFindOne(NewQueryFixtureQuery().FindByInteger(kallax.Eq, 2)).Eq(queryFixtures[2]))
})
s.Panics(func() {
store.MustFindOne(NewQueryFixtureQuery().FindByInteger(kallax.Eq, 99))
Expand Down

0 comments on commit a2e945e

Please sign in to comment.