| import OpenClawKit | |
| import Testing | |
| struct GatewayErrorsTests { | |
| func bootstrapTokenInvalidIsNonRecoverable() { | |
| let error = GatewayConnectAuthError( | |
| message: "setup code expired", | |
| detailCode: GatewayConnectAuthDetailCode.authBootstrapTokenInvalid.rawValue, | |
| canRetryWithDeviceToken: false) | |
| #expect(error.isNonRecoverable) | |
| #expect(error.detail == .authBootstrapTokenInvalid) | |
| } | |
| } | |