Skip to content

Commit 87ebf7f

Browse files
fix(lint): Fix linting issues
Signed-off-by: Thomas Poignant <[email protected]>
1 parent 2dee5db commit 87ebf7f

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Tests/GOFeatureFlagTests/goff_api_tests.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class GoffApiTests: XCTestCase {
3030
FeatureEvent(kind: "feature", userKey: "981f2662-1fb4-4732-ac6d-8399d9205aa9", creationDate: Int64(Date().timeIntervalSince1970), key: "flag-1", variation: "enabled", value: JSONValue.bool(true), default: false, version: nil, source: "PROVIDER_CACHE")
3131
]
3232
do {
33-
let (response, _) = try await goffAPI.postDataCollector(events: events)
33+
_ = try await goffAPI.postDataCollector(events: events)
3434
XCTFail("Expected to throw GoFeatureFlagError.apiUnauthorizedError, but no error was thrown.")
3535
} catch let error as GoFeatureFlagError {
3636
switch error {
@@ -52,7 +52,7 @@ class GoffApiTests: XCTestCase {
5252
FeatureEvent(kind: "feature", userKey: "981f2662-1fb4-4732-ac6d-8399d9205aa9", creationDate: Int64(Date().timeIntervalSince1970), key: "flag-1", variation: "enabled", value: JSONValue.bool(true), default: false, version: nil, source: "PROVIDER_CACHE")
5353
]
5454
do {
55-
let (response, _) = try await goffAPI.postDataCollector(events: events)
55+
_ = try await goffAPI.postDataCollector(events: events)
5656
XCTFail("Expected to throw GoFeatureFlagError.forbiddenError, but no error was thrown.")
5757
} catch let error as GoFeatureFlagError {
5858
switch error {

Tests/OFREPTests/provider_tests.swift

+19-19
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class ProviderTests: XCTestCase {
7777
let expectation = XCTestExpectation(description: "waiting 1st event")
7878
let cancellable = api.observe().sink{ event in
7979
if(event != ProviderEvent.error(errorCode: nil, message: "The operation couldn’t be completed. (OFREP.OfrepError error 3.)")){
80-
XCTFail("If OFREP API returns a 429 we should receive an ERROR event, received: \(event)")
80+
XCTFail("If OFREP API returns a 429 we should receive an ERROR event, received: \(String(describing: event)))")
8181
}
8282
expectation.fulfill()
8383
}
@@ -106,7 +106,7 @@ class ProviderTests: XCTestCase {
106106
let expectation = XCTestExpectation(description: "waiting 1st event")
107107
let cancellable = api.observe().sink{ event in
108108
if(event != ProviderEvent.error(errorCode: nil, message: "The operation couldn’t be completed. (OpenFeature.OpenFeatureError error 5.)")){
109-
XCTFail("If OFREP API returns a 400 for TARGETING_KEY_MISSING we should receive an ERROR event, received: \(event)")
109+
XCTFail("If OFREP API returns a 400 for TARGETING_KEY_MISSING we should receive an ERROR event, received: \(String(describing: event)))")
110110
}
111111
expectation.fulfill()
112112
}
@@ -134,7 +134,7 @@ class ProviderTests: XCTestCase {
134134

135135
let cancellable = api.observe().sink{ event in
136136
if(event != ProviderEvent.error(errorCode: nil, message: "The operation couldn’t be completed. (OpenFeature.OpenFeatureError error 4.)")){
137-
XCTFail("If OFREP API returns a 400 for INVALID_CONTEXT we should receive an ERROR event, received: \(event)")
137+
XCTFail("If OFREP API returns a 400 for INVALID_CONTEXT we should receive an ERROR event, received: \(String(describing: event))")
138138
}
139139
expectation.fulfill()
140140
}
@@ -164,7 +164,7 @@ class ProviderTests: XCTestCase {
164164
let expectation = XCTestExpectation(description: "waiting 1st event")
165165
let cancellable = api.observe().sink{ event in
166166
if(event != ProviderEvent.error(errorCode: nil, message: "The operation couldn’t be completed. (OpenFeature.OpenFeatureError error 2.)")){
167-
XCTFail("If OFREP API returns a 400 for PARSE_ERROR we should receive an ERROR event, received: \(event)")
167+
XCTFail("If OFREP API returns a 400 for PARSE_ERROR we should receive an ERROR event, received: \(String(describing: event)))")
168168
}
169169
expectation.fulfill()
170170
}
@@ -187,7 +187,7 @@ class ProviderTests: XCTestCase {
187187
let expectation = XCTestExpectation(description: "waiting 1st event")
188188
let cancellable = api.observe().sink{ event in
189189
if(event != ProviderEvent.ready){
190-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
190+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
191191
}
192192
expectation.fulfill()
193193
}
@@ -212,7 +212,7 @@ class ProviderTests: XCTestCase {
212212
let expectation = XCTestExpectation(description: "waiting 1st event")
213213
let cancellable = api.observe().sink{ event in
214214
if(event != ProviderEvent.ready){
215-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
215+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
216216
}
217217
expectation.fulfill()
218218
}
@@ -264,7 +264,7 @@ class ProviderTests: XCTestCase {
264264
let expectation = XCTestExpectation(description: "waiting 1st event")
265265
let cancellable = api.observe().sink{ event in
266266
if(event != ProviderEvent.ready){
267-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
267+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
268268
}
269269
expectation.fulfill()
270270
}
@@ -300,7 +300,7 @@ class ProviderTests: XCTestCase {
300300
case .ready:
301301
expect.fulfill()
302302
default:
303-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
303+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
304304
expect.fulfill()
305305
}
306306
}
@@ -462,7 +462,7 @@ class ProviderTests: XCTestCase {
462462
let expectation = XCTestExpectation(description: "waiting 1st event")
463463
let cancellable = api.observe().sink{ event in
464464
if(event != ProviderEvent.ready){
465-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
465+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
466466
}
467467
expectation.fulfill()
468468
}
@@ -495,7 +495,7 @@ class ProviderTests: XCTestCase {
495495
let expectation = XCTestExpectation(description: "waiting 1st event")
496496
let cancellable = api.observe().sink{ event in
497497
if(event != ProviderEvent.ready){
498-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
498+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
499499
}
500500
expectation.fulfill()
501501
}
@@ -528,7 +528,7 @@ class ProviderTests: XCTestCase {
528528
let expectation = XCTestExpectation(description: "waiting 1st event")
529529
let cancellable = api.observe().sink{ event in
530530
if(event != ProviderEvent.ready){
531-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
531+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
532532
}
533533
expectation.fulfill()
534534
}
@@ -559,7 +559,7 @@ class ProviderTests: XCTestCase {
559559
let expectation = XCTestExpectation(description: "waiting 1st event")
560560
let cancellable = api.observe().sink{ event in
561561
if(event != ProviderEvent.ready){
562-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
562+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
563563
}
564564
expectation.fulfill()
565565
}
@@ -590,7 +590,7 @@ class ProviderTests: XCTestCase {
590590
let expectation = XCTestExpectation(description: "waiting 1st event")
591591
let cancellable = api.observe().sink{ event in
592592
if(event != ProviderEvent.ready){
593-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
593+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
594594
}
595595
expectation.fulfill()
596596
}
@@ -621,7 +621,7 @@ class ProviderTests: XCTestCase {
621621
let expectation = XCTestExpectation(description: "waiting 1st event")
622622
let cancellable = api.observe().sink{ event in
623623
if(event != ProviderEvent.ready){
624-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
624+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
625625
}
626626
expectation.fulfill()
627627
}
@@ -652,7 +652,7 @@ class ProviderTests: XCTestCase {
652652
let expectation = XCTestExpectation(description: "waiting 1st event")
653653
let cancellable = api.observe().sink{ event in
654654
if(event != ProviderEvent.ready){
655-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
655+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
656656
}
657657
expectation.fulfill()
658658
}
@@ -677,7 +677,7 @@ class ProviderTests: XCTestCase {
677677
let expectation = XCTestExpectation(description: "waiting 1st event")
678678
let cancellable = api.observe().sink{ event in
679679
if(event != ProviderEvent.ready){
680-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
680+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
681681
}
682682
expectation.fulfill()
683683
}
@@ -702,7 +702,7 @@ class ProviderTests: XCTestCase {
702702
let expectation = XCTestExpectation(description: "waiting 1st event")
703703
let cancellable = api.observe().sink{ event in
704704
if(event != ProviderEvent.ready){
705-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
705+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
706706
}
707707
expectation.fulfill()
708708
}
@@ -727,7 +727,7 @@ class ProviderTests: XCTestCase {
727727
let expectation = XCTestExpectation(description: "waiting 1st event")
728728
let cancellable = api.observe().sink{ event in
729729
if(event != ProviderEvent.ready){
730-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
730+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
731731
}
732732
expectation.fulfill()
733733
}
@@ -752,7 +752,7 @@ class ProviderTests: XCTestCase {
752752
let expectation = XCTestExpectation(description: "waiting 1st event")
753753
let cancellable = api.observe().sink{ event in
754754
if(event != ProviderEvent.ready){
755-
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(event)")
755+
XCTFail("If OFREP API returns a 200 we should receive a ready event, received: \(String(describing: event)))")
756756
}
757757
expectation.fulfill()
758758
}

0 commit comments

Comments
 (0)