Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6786c20

Browse files
committedJan 20, 2025·
remove unused code
Signed-off-by: Thomas Poignant <[email protected]>
1 parent 0fe8aeb commit 6786c20

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed
 

‎Tests/GOFeatureFlagTests/provider_tests.swift

-15
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class GoFeatureFlagProviderTests: XCTestCase {
1717
options: GoFeatureFlagProviderOptions(
1818
endpoint: "https://localhost:1031",
1919
dataFlushInterval: 1,
20-
exporterMetadata: ["version": ExporterMetadataValue.string("1.0.0")],
2120
networkService: mockNetworkService
2221
)
2322
)
@@ -40,20 +39,6 @@ class GoFeatureFlagProviderTests: XCTestCase {
4039

4140
XCTAssertEqual(1, mockNetworkService.dataCollectorCallCounter)
4241
XCTAssertEqual(6, mockNetworkService.dataCollectorEventCounter)
43-
44-
do {
45-
let httpBodyCollector = mockNetworkService.requests[mockNetworkService.requests.count - 1].httpBody!
46-
// print httpBodyCollector
47-
print(String(data: httpBodyCollector, encoding: .utf8)!)
48-
let json = try JSONSerialization.jsonObject(with: httpBodyCollector, options: []) as? [String: Any]
49-
guard let jsonDict = json else {
50-
XCTFail("Could not deserialize JSON")
51-
return
52-
}
53-
} catch {
54-
XCTFail("Error deserializing JSON: \(error)")
55-
}
56-
5742
}
5843

5944
func testExporterMetadata() async {

0 commit comments

Comments
 (0)
Please sign in to comment.