Skip to content

Commit daf30d2

Browse files
authored
[FSSDK-8918] chore: fix prepare script (#493)
1 parent b53be91 commit daf30d2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Optimizely Swift SDK Changelog
22

33
## 4.0.0-beta
4-
April 27, 2023
4+
April 28, 2023
55

66
### New Features
77

Scripts/run_prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function push_changes {
7777
;;
7878
esac
7979
}
80-
git push https://${GITHUB_TOKEN}@github.com/${REPO_SLUG} ${AUTOBRANCH}
80+
git push -f https://${GITHUB_TOKEN}@github.com/${REPO_SLUG} ${AUTOBRANCH}
8181
PR_URL=$(hub pull-request --no-edit -b ${BRANCH})
8282
echo -e "${COLOR_CYAN}ATTENTION:${COLOR_RESET} review and merge ${COLOR_CYAN}${PR_URL}${COLOR_RESET}"
8383
echo "then to release to cocoapods use Git action's Trigger build with the following payload:"

Tests/OptimizelyTests-Common/OdpEventManagerTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class OdpEventManagerTests: XCTestCase {
2929
let customData: [String: Any] = ["key-1": "value-1",
3030
"key-2": 12.5,
3131
"model": "overruled"]
32+
var originalMaxQueueSize = 0
3233

3334
override func setUp() {
3435
OTUtils.clearAllEventQueues()
@@ -40,10 +41,12 @@ class OdpEventManagerTests: XCTestCase {
4041
manager = OdpEventManager(sdkKey: "any",
4142
apiManager: apiManager)
4243
manager.odpConfig = odpConfig
44+
originalMaxQueueSize = manager.maxQueueSize
4345
}
4446

4547
override func tearDown() {
4648
OTUtils.clearAllEventQueues()
49+
manager.maxQueueSize = originalMaxQueueSize
4750
}
4851

4952
// MARK: - save and restore events

0 commit comments

Comments
 (0)