Skip to content

Commit 729a91c

Browse files
authored
Merge pull request #1410 from grails/ignoreTestOnGithubWorkflow
Ignore DatabasePerTenantSpec.groovy on Github Workflow
2 parents e7d2daa + cec80a7 commit 729a91c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

grails-datastore-gorm-test/src/test/groovy/grails/gorm/services/multitenancy/database/DatabasePerTenantSpec.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ import org.grails.datastore.mapping.multitenancy.exceptions.TenantNotFoundExcept
99
import org.grails.datastore.mapping.multitenancy.resolvers.SystemPropertyTenantResolver
1010
import org.grails.datastore.mapping.simple.SimpleMapDatastore
1111
import spock.lang.AutoCleanup
12+
import spock.lang.Ignore
13+
import spock.lang.IgnoreIf
1214
import spock.lang.Shared
1315
import spock.lang.Specification
1416

1517
/**
1618
* Created by graemerocher on 05/04/2017.
1719
*/
20+
1821
class DatabasePerTenantSpec extends Specification {
1922

2023
@Shared @AutoCleanup SimpleMapDatastore datastore = new SimpleMapDatastore(
@@ -26,6 +29,8 @@ class DatabasePerTenantSpec extends Specification {
2629
)
2730
@Shared IBookService bookDataService = datastore.getService(IBookService)
2831

32+
//Ignore test on Github Workflow because of inconsistent behavior
33+
@IgnoreIf({ System.getenv("GITHUB_WORKFLOW")})
2934
void 'Test database per tenant'() {
3035
when:"When there is no tenant"
3136
Book.count()

0 commit comments

Comments
 (0)