Fix issue with call creation

sync2
Laurent 9 months ago
parent 2b26950d67
commit 389f5b851e
  1. 3
      LeStorage/ApiCallCollection.swift
  2. 2
      LeStorageTests/ApiCallTests.swift

@ -230,8 +230,7 @@ actor ApiCallCollection<T: Storable>: SomeCallCollection {
case (.post, .put):
call = try self._createCall(instance, method: .post)
case (.post, .delete):
self._deleteCalls(existingCalls)
return nil
call = try self._createCall(instance, method: .delete)
case (.put, .put):
call = try self._createCall(instance, method: .put)
case (.put, .delete):

@ -43,7 +43,7 @@ struct ApiCallTests {
}
let _ = try await collection.sendDeletion(thing)
await #expect(collection.items.count == 0)
await #expect(collection.items.count == 1)
}
@Test func testApiCallProvisioning2() async throws {

Loading…
Cancel
Save