Skip to content

Commit

Permalink
Scope search & search index management test updates
Browse files Browse the repository at this point in the history
Change-Id: Ia3d270fc187f2c78055e68a5e0e555d128e623b9
Reviewed-on: https://review.couchbase.org/c/gocb/+/205568
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Emilien Bevierre <emilien.bevierre@couchbase.com>
  • Loading branch information
DemetrisChr committed Feb 13, 2024
1 parent 82de156 commit 853c2d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions cluster_searchindexes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,6 @@ func (suite *IntegrationTestSuite) TestSearchIndexNotFound() {
_, err := mgr.GetIndex(indexName, nil)
suite.Require().ErrorIs(err, ErrIndexNotFound)
})
suite.Run("TestAnalyzeDocumentIndexNotFound", func() {
_, err := mgr.AnalyzeDocument(indexName, "foo", nil)
suite.Require().ErrorIs(err, ErrIndexNotFound)
})
suite.Run("TestGetIndexedDocumentsCountIndexNotFound", func() {
_, err := mgr.GetIndexedDocumentsCount(indexName, nil)
suite.Require().ErrorIs(err, ErrIndexNotFound)
Expand Down
4 changes: 2 additions & 2 deletions testcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,9 @@ func (c *testCluster) SupportsFeature(feature FeatureCode) bool {
case CollectionUpdateMaxExpiryFeature:
supported = !c.Version.Lower(srvVer760)
case ScopeSearchIndexFeature:
supported = !c.Version.Lower(srvVer750)
supported = !c.Version.Lower(srvVer760)
case ScopeSearchFeature:
supported = !c.Version.Lower(srvVer750) && !c.Version.Equal(protostellarVer)
supported = !c.Version.Lower(srvVer760) && !c.Version.Equal(protostellarVer)
}
}

Expand Down

0 comments on commit 853c2d7

Please sign in to comment.