Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test-collector-swift/Tests/CoreTests/CollectorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import XCTest

final class CollectorTests: XCTestCase {
func testDefaultCollector() throws {
let environment = EnvironmentValues(values: [:])
let environment = EnvironmentValues(
values: [:],
getFromEnvironment: { _ in nil },
getFromInfoDictionary: { _ in nil }
)
let collector = TestCollector(environment: environment)
let observer = try XCTUnwrap(collector.observer, "Observer should be initialised")
XCTAssertNil(observer.uploader, "Uploader should not be initialised without an api key")
Expand Down