Skip to content

Commit

Permalink
Ignore slow test on ci for windows and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Dec 15, 2023
1 parent 618c70e commit b1e89ec
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import org.spockframework.specs.extension.Snapshotter
import org.spockframework.util.Assert
import org.spockframework.util.InternalSpockError
import spock.config.ConfigurationObject
import spock.lang.IgnoreIf
import spock.lang.Shared

import java.lang.annotation.Retention
Expand Down Expand Up @@ -71,6 +72,10 @@ class StoreSpec extends EmbeddedSpecification {
@Shared
def supportedMethodKinds = ((MethodKind.values() as List) - [MethodKind.DATA_PROCESSOR, MethodKind.DATA_PROVIDER])

@IgnoreIf(
value = { env.CI && (os.macOs || os.windows) },
reason = "The CI runners for macos and windows are too slow and this isn't really affected by platform"
)
def "properly handles failures during store cleanup"() {
given:
AtomicReference sharedList = new AtomicReference([])
Expand Down Expand Up @@ -109,7 +114,7 @@ class StoreSpec extends EmbeddedSpecification {
class LogStoreExtension implements IAnnotationDrivenExtension<LogStoreUsage> {
final LoggingStoreConfig config

LogStoreExtension (LoggingStoreConfig config) {
LogStoreExtension(LoggingStoreConfig config) {
this.config = config
}

Expand All @@ -123,7 +128,7 @@ class LogStoreExtension implements IAnnotationDrivenExtension<LogStoreUsage> {
specInfo.addSetupSpecInterceptor interceptor
specInfo.addInitializerInterceptor interceptor
specInfo.addSetupInterceptor interceptor
specInfo.allFixtureMethods*.addInterceptor interceptor
specInfo.allFixtureMethods*.addInterceptor interceptor
specInfo.allFeatures*.addInterceptor interceptor
specInfo.allFeatures*.addIterationInterceptor interceptor
specInfo.allFeatures*.featureMethod*.addInterceptor interceptor
Expand Down Expand Up @@ -208,7 +213,7 @@ class FailingCleanupStoreExtension implements IAnnotationDrivenExtension<Failing
specInfo.addSetupSpecInterceptor interceptor
specInfo.addInitializerInterceptor interceptor
specInfo.addSetupInterceptor interceptor
specInfo.allFixtureMethods*.addInterceptor interceptor
specInfo.allFixtureMethods*.addInterceptor interceptor
specInfo.allFeatures*.addInterceptor interceptor
specInfo.allFeatures*.addIterationInterceptor interceptor
specInfo.allFeatures*.featureMethod*.addInterceptor interceptor
Expand Down

0 comments on commit b1e89ec

Please sign in to comment.