Skip to content

Commit

Permalink
Removed unneeded test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbruin-NR committed Oct 17, 2024
1 parent 7ed9b57 commit 7fba9ba
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Test Harness/NRTestApp/NRTestApp/ViewModels/UtilViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,15 @@ class UtilViewModel {
}

func testSystemLogs() {
triggerException.testNSLog()
print("TEST swift!!!!!")
os_log("TEST OSLog!!!!!!!")
for i in 0...100 {
triggerException.testNSLog()
print("TEST swift!!!!! \(i)")
if #available(iOS 14.0, *) {
os_log("TEST OSLog!!!!!!! \(i)")
let logger = Logger()
logger.warning("TEST Logger!!!!! \(i)")
}
}
}

func testLogError() {
Expand Down Expand Up @@ -190,13 +196,6 @@ class UtilViewModel {
func setBuild() {
NewRelic.setApplicationBuild("42")
}

func testHttpRequestError() {
let reqUrl = URL(string: "https://5fp8uw121j.execute-api.ap-northeast-1.amazonaws.com/api/500/0")!
let urlSession = URLSession(configuration: URLSession.shared.configuration, delegate: taskProcessor, delegateQueue: nil)
let task = urlSession.dataTask(with: reqUrl)
task.resume()
}

func doDataTask() {
let urlSession = URLSession(configuration: URLSession.shared.configuration, delegate: taskProcessor, delegateQueue: nil)
Expand Down

0 comments on commit 7fba9ba

Please sign in to comment.