Skip to content

Commit e621e30

Browse files
wip handling binary data
might be best to try DRYing up these primitiveBlah arrays
1 parent 8063b5b commit e621e30

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

TODO.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
- [ ] the primitiveKeyData need DRYing up — and I need to understand what types they should be
33
- [ ] some of the code that checks unsubscribe might be a bit racy — e.g. it might just be that you didn't see an update yet because you dispatched its handling into a `Task`
44
- [ ] there are a bunch of `if case` statements in the tests which make me worry that some tests might end up being no-ops
5+
- [ ] processDeserializedProtocolMessage should really be using the internal queue

Tests/AblyLiveObjectsTests/JS Integration Tests/ObjectsIntegrationTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ private struct ObjectsIntegrationTests {
239239
var channel: ARTRealtimeChannel
240240
var client: ARTRealtime
241241
var clientOptions: ClientHelper.PartialClientOptions
242+
243+
/// Whether the client in this test is using the binary protocol.
244+
var useBinaryProtocol: Bool {
245+
// This saves us from having to use private API to interrogate whether the binary protocol is being used (which is what the JS tests do), at the cost of having to duplicate the fact that binary is the default.
246+
clientOptions.useBinaryProtocol ?? true
247+
}
242248
}
243249

244250
static let scenarios: [TestScenario<Context>] = {

testing-plan-annotated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func base64Decode(_ string: String) -> Data
146146
- Requires precise timing and state management
147147
- Tests complex interaction between sync and operations
148148

149-
#### Step 3f: Error Handling Scenarios (Medium Risk)
149+
#### Step 3f: Error Handling Scenarios (Medium Risk) — In progress. Has test failures and am currently trying to work out how to handle binary data; might require us to switch to using WireValue in the tests
150150
**clientConfigurationScenarios** - Test various error conditions
151151
- 6 scenarios testing channel state and mode validation
152152
- Requires channel state manipulation

0 commit comments

Comments
 (0)