|
|
|
|
@ -24,8 +24,12 @@ class Boat: ModelObject, SyncedStorable { |
|
|
|
|
|
|
|
|
|
var id: String = Store.randomId() |
|
|
|
|
var lastUpdate: Date = Date() |
|
|
|
|
var shared: Bool? |
|
|
|
|
var shared: Bool? = false |
|
|
|
|
|
|
|
|
|
override required init() { |
|
|
|
|
super.init() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static func tokenExemptedMethods() -> [LeStorage.HTTPMethod] { return [] } |
|
|
|
|
static func resourceName() -> String { return "boat" } |
|
|
|
|
|
|
|
|
|
@ -61,6 +65,7 @@ struct CollectionsTests { |
|
|
|
|
// Wait a bit before checking again |
|
|
|
|
try await Task.sleep(for: .milliseconds(100)) |
|
|
|
|
} |
|
|
|
|
collection.reset() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Test func differentiationTest() async throws { |
|
|
|
|
|