feat(drone-dock): 接入火山实时图传并保留禁飞保护
This commit is contained in:
@@ -5,6 +5,10 @@ import XCTest
|
||||
/// 验证禁飞调试在进入传输层之前拦截真实操作,所有探针本身也不联网。
|
||||
@MainActor
|
||||
final class DeviceCommandDebugPolicyTests: XCTestCase {
|
||||
/// 飞行限制不再由 Debug/Release 决定,正式包也不得用于创建待飞任务或飞控。
|
||||
func testFlightRestrictionIsIndependentOfLivePlaybackBuildMode() {
|
||||
XCTAssertTrue(DeviceCommandDebugPolicy.blocksFlightRequests)
|
||||
}
|
||||
/// 即使切到生产地址或未来新增机场动作,默认传输也不能发送设备操作。
|
||||
func testTypedCommandsAreBlockedBeforeTransportInBothEnvironments() async throws {
|
||||
XCTAssertTrue(DeviceCommandDebugPolicy.blocksLiveRequests)
|
||||
|
||||
Reference in New Issue
Block a user