Skip to content

Commit

Permalink
Enabling all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
javrudsky committed May 31, 2024
1 parent b5ec0f1 commit 4d22caa
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_tvos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_watchos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ on:

jobs:
build:
runs-on: [macos-14-large]
runs-on: [macos-14]

steps:
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.1.0
xcode-version: 15.4.0

- name: Checkout
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_streaming_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_streaming_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_ut_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_ut_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_ut_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ios_ut_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_semver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ut_push_manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_ut_streaming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
- master
pull_request:
branches:
- master_
- development_
- master
- development

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions Split/Localhost/LocalhostFileDataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class FeatureFlagsFileLoader: LocalhostDataSource {
}

if !LocalhostFileCopier.copySourceFile(name: fileInfo.name,
type: fileInfo.type,
fileStorage: fileStorage,
bundle: bundle) {
type: fileInfo.type,
fileStorage: fileStorage,
bundle: bundle) {
Logger.e("Localhost file name \(fileName) not found. Please check name.")
return nil
}
Expand Down
4 changes: 3 additions & 1 deletion SplitTests/Localhost/LocalhostSynchronizerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ class LocalhostSynchronizerTests: XCTestCase {
let eventsManager = SplitEventsManagerMock()
let datasource = LocalhostApiDataSource()

_ = LocalhostSynchronizer(featureFlagsStorage: storage,
let sync = LocalhostSynchronizer(featureFlagsStorage: storage,
featureFlagsDataSource: datasource,
eventsManager: eventsManager)

let prevSdkReady = eventsManager.isSplitsReadyFired
datasource.update(yaml: yamlContent)
XCTAssertFalse(prevSdkReady)
XCTAssertTrue(eventsManager.isSplitsReadyFired)

sync.stop()
}

func testUpdateYaml() {
Expand Down

0 comments on commit 4d22caa

Please sign in to comment.