File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/groovy/com/github/mkopylec/sessioncouchbase Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ abstract class BasicSpec extends Specification {
5050 private EmbeddedWebApplicationContext context
5151 private int extraInstancePort
5252 private ApplicationInstance instance
53- @Autowired
53+ @Autowired ( required = false )
5454 private CouchbaseProperties couchbase
5555 @Autowired
5656 private SessionCouchbaseProperties sessionCouchbase
@@ -212,7 +212,7 @@ abstract class BasicSpec extends Specification {
212212 }
213213
214214 private void createBucketIndex () {
215- if (! bucketIndexCreated && template) {
215+ if (! bucketIndexCreated && template && couchbase ) {
216216 def result = template. queryN1QL(simple(' SELECT * FROM system:indexes' ))
217217 failOnErrors(result)
218218 if (result. allRows(). empty) {
You can’t perform that action at this time.
0 commit comments