Add iOS client hang test
Summary: Check that it never hangs or crashes during startup Reviewed By: priteshrnandgaonkar Differential Revision: D10034630 fbshipit-source-id: b69ce9e6f91a5499a084c4d7328e6934ec92ece4
This commit is contained in:
committed by
Facebook Github Bot
parent
7e296467d2
commit
3118814ddc
26
iOS/SonarKitTests/FlipperClientTests.mm
Normal file
26
iOS/SonarKitTests/FlipperClientTests.mm
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the LICENSE
|
||||
* file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
#import <XCTest/XCTest.h>
|
||||
|
||||
#if FB_SONARKIT_ENABLED
|
||||
|
||||
#import <FlipperKit/FlipperClient.h>
|
||||
|
||||
@interface FlipperClientTests : XCTestCase
|
||||
@end
|
||||
|
||||
@implementation FlipperClientTests
|
||||
|
||||
- (void)testStartingClientDoesntCrashOrHang {
|
||||
FlipperClient *client = [FlipperClient sharedClient];
|
||||
[client start];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user