Skip to content

Commit

Permalink
Remove unnecessary count call in TestSQLiteEventStore
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Oct 17, 2023
1 parent 78a25f8 commit 8654cde
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Core/Storage/SQLiteEventStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import Foundation

class SQLiteEventStore: NSObject, EventStore {
private var database: Database
private let database: Database
private var sendLimit: Int

init(namespace: String?, limit: Int = 250) {
Expand Down
2 changes: 0 additions & 2 deletions Tests/Storage/TestSQLiteEventStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ class TestSQLiteEventStore: XCTestCase {

func testSQLiteEventStoreCreateSQLiteFile() {
let eventStore = createEventStore("aNamespace")
_ = eventStore.count()

let libraryPath = FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask).map(\.path)[0]
let snowplowDirPath = URL(fileURLWithPath: libraryPath).appendingPathComponent("snowplow").path
Expand All @@ -90,7 +89,6 @@ class TestSQLiteEventStore: XCTestCase {

func testSQLiteEventStoreInvalidNamespaceConversion() {
let eventStore = createEventStore("namespace*.^?1ò2@")
_ = eventStore.count()

let libraryPath = FileManager.default.urls(for: .libraryDirectory, in: .userDomainMask).map(\.path)[0]
let snowplowDirPath = URL(fileURLWithPath: libraryPath).appendingPathComponent("snowplow").path
Expand Down

0 comments on commit 8654cde

Please sign in to comment.