From b1313a2415b0585e32e861a3cbeeebfb90350ebe Mon Sep 17 00:00:00 2001 From: ijunaid Date: Mon, 28 Oct 2024 21:31:59 +0500 Subject: [PATCH] Added dummyTest --- CountlyTests/CountlyViewTests.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CountlyTests/CountlyViewTests.swift b/CountlyTests/CountlyViewTests.swift index 896758fe..be0055f8 100644 --- a/CountlyTests/CountlyViewTests.swift +++ b/CountlyTests/CountlyViewTests.swift @@ -10,6 +10,16 @@ import XCTest class CountlyViewTrackingTests: CountlyViewBaseTest { + // Run this test first if you are facing cache not clear or instances are not reset properly + // This is a dummy test to cover the edge case clear the cache when SDK is not initialized + func testDummy() { + let config = createBaseConfig() + config.requiresConsent = false; + config.manualSessionHandling = true; + Countly.sharedInstance().start(with: config); + Countly.sharedInstance().halt(true) + } + func testStartAndStopView() throws { let config = createBaseConfig() Countly.sharedInstance().start(with: config)