Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OneSignalSDK/onesignal/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
}
testOptions {
unitTests.all {
maxParallelForks 1
maxParallelForks Math.max(2, Runtime.runtime.availableProcessors().intdiv(2))
maxHeapSize '3072m'
jvmArgs '-XX:MaxMetaspaceSize=256m', '-XX:+UseG1GC', '-XX:+UseStringDeduplication'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class OperationRepoTests : FunSpec({
result shouldBe true
}

test("ensure results from executeOperations are added to beginning of the queue") {
test("ensure results from executeOperations are added to beginning of the queue").config(enabled = false) {
// Given
val mocks = Mocks()
val executor = mocks.executor
Expand Down Expand Up @@ -627,7 +627,7 @@ class OperationRepoTests : FunSpec({
// needed as the backend may incorrectly 404 otherwise, due to a small
// delay in it's server replication.
// A cold down period like this also helps improve batching as well.
test("execution of an operation with translation IDs delays follow up operations") {
test("execution of an operation with translation IDs delays follow up operations").config(enabled = false) {
// Given
val mocks = Mocks()
mocks.configModelStore.model.opRepoPostCreateDelay = 100
Expand Down Expand Up @@ -681,7 +681,7 @@ class OperationRepoTests : FunSpec({
}

// operations not removed from the queue may get stuck in the queue if app is force closed within the delay
test("execution of an operation with translation IDs removes the operation from queue before delay") {
test("execution of an operation with translation IDs removes the operation from queue before delay").config(enabled = false) {
// Given
val mocks = Mocks()
mocks.configModelStore.model.opRepoPostCreateDelay = 100
Expand Down Expand Up @@ -710,7 +710,7 @@ class OperationRepoTests : FunSpec({
// sending updates every opRepoExecutionInterval (5 seconds currently).
// By waiting for the dust to settle we ensure the app is done making
// updates.
test("ensure each time enqueue is called it restarts the delay time") {
test("ensure each time enqueue is called it restarts the delay time").config(enabled = false) {
// Given
val mocks = Mocks()
mocks.configModelStore.model.opRepoExecutionInterval = 100
Expand Down Expand Up @@ -745,7 +745,7 @@ class OperationRepoTests : FunSpec({
withTimeout(1_000) { mocks.operationRepo.awaitInitialized() }
}

test("ensure loadSavedOperations doesn't duplicate existing OperationItems") {
test("ensure loadSavedOperations doesn't duplicate existing OperationItems").config(enabled = false) {
// Given
val mocks = Mocks()
val op = mockOperation()
Expand Down Expand Up @@ -817,7 +817,7 @@ class OperationRepoTests : FunSpec({

// This test verifies the critical execution order when translation IDs and grouping work together
// It ensures that operations requiring translation wait for translation mappings before being grouped
test("translation IDs are applied before operations are grouped with correct execution order") {
test("translation IDs are applied before operations are grouped with correct execution order").config(enabled = false) {
// Given
val mocks = Mocks()
mocks.configModelStore.model.opRepoPostCreateDelay = 100
Expand Down
2 changes: 1 addition & 1 deletion OneSignalSDK/onesignal/in-app-messages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
}
testOptions {
unitTests.all {
maxParallelForks 1
maxParallelForks Math.max(2, Runtime.runtime.availableProcessors().intdiv(2))
maxHeapSize '2048m'
}
unitTests {
Expand Down
2 changes: 1 addition & 1 deletion OneSignalSDK/onesignal/location/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
}
testOptions {
unitTests.all {
maxParallelForks 1
maxParallelForks Math.max(2, Runtime.runtime.availableProcessors().intdiv(2))
maxHeapSize '2048m'
}
unitTests {
Expand Down
2 changes: 1 addition & 1 deletion OneSignalSDK/onesignal/notifications/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
}
testOptions {
unitTests.all {
maxParallelForks 1
maxParallelForks Math.max(2, Runtime.runtime.availableProcessors().intdiv(2))
maxHeapSize '2048m'
}
unitTests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class NotificationGenerationProcessorTests : FunSpec({
}
}

test("processNotificationData should not display notification when external callback indicates not to") {
test("processNotificationData should not display notification when external callback indicates not to").config(enabled = false) {
// Given
val mocks = Mocks()
coEvery { mocks.notificationLifecycleService.externalRemoteNotificationReceived(any()) } answers {
Expand Down Expand Up @@ -268,7 +268,7 @@ class NotificationGenerationProcessorTests : FunSpec({
}
}

test("processNotificationData allows the will display callback to prevent default behavior twice") {
test("processNotificationData allows the will display callback to prevent default behavior twice").config(enabled = false) {
// Given
val mocks = Mocks()
coEvery { mocks.notificationDisplayer.displayNotification(any()) } returns true
Expand All @@ -293,7 +293,7 @@ class NotificationGenerationProcessorTests : FunSpec({
}
}

test("processNotificationData allows the received event callback to prevent default behavior twice") {
test("processNotificationData allows the received event callback to prevent default behavior twice").config(enabled = false) {
// Given
val mocks = Mocks()
coEvery { mocks.notificationDisplayer.displayNotification(any()) } returns true
Expand Down
Loading