From b4b35351bc46a40bf8c518d99f31e91f06da36a5 Mon Sep 17 00:00:00 2001 From: Christoph Wendt Date: Thu, 10 Sep 2015 18:50:35 -0700 Subject: [PATCH] Fix warning (channel tests) --- Support/HockeySDKTests/BITChannelTests.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Support/HockeySDKTests/BITChannelTests.m b/Support/HockeySDKTests/BITChannelTests.m index b45fd158c1..e03911c1a7 100644 --- a/Support/HockeySDKTests/BITChannelTests.m +++ b/Support/HockeySDKTests/BITChannelTests.m @@ -28,7 +28,9 @@ - (void)setUp { [super setUp]; _mockPersistence = mock(BITPersistence.class); - _sut = [[BITChannel alloc]initWithTelemetryContext:nil persistence:_mockPersistence]; + BITTelemetryContext *mockContext = mock(BITTelemetryContext.class); + + _sut = [[BITChannel alloc]initWithTelemetryContext:mockContext persistence:_mockPersistence]; BITSafeJsonEventsString = NULL; }