mirror of https://github.com/openclaw/openclaw.git
15 lines
457 B
Swift
15 lines
457 B
Swift
import OpenClawKit
|
|
import Testing
|
|
|
|
@Suite struct GatewayErrorsTests {
|
|
@Test func bootstrapTokenInvalidIsNonRecoverable() {
|
|
let error = GatewayConnectAuthError(
|
|
message: "setup code expired",
|
|
detailCode: GatewayConnectAuthDetailCode.authBootstrapTokenInvalid.rawValue,
|
|
canRetryWithDeviceToken: false)
|
|
|
|
#expect(error.isNonRecoverable)
|
|
#expect(error.detail == .authBootstrapTokenInvalid)
|
|
}
|
|
}
|