Skip to content

Commit 3e55797

Browse files
authored
Update benchmarks for incubating cache API changes (#6052)
1 parent 7ad20e1 commit 3e55797

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmark/microbenchmark/src/androidTest/java/com/apollographql/apollo/benchmark/CacheIncubatingTests.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class CacheIncubatingTests {
7575
private fun <D : Query.Data> readFromCache(testName: String, query: Query<D>, sql: Boolean, check: (D) -> Unit) {
7676
val cache = if (sql) {
7777
Utils.dbFile.delete()
78-
SqlNormalizedCacheFactory(Utils.dbName, withDates = true).create()
78+
SqlNormalizedCacheFactory(name = Utils.dbName).create()
7979
} else {
8080
MemoryCacheFactory().create()
8181
}
@@ -108,7 +108,7 @@ class CacheIncubatingTests {
108108
private fun <D : Query.Data> concurrentReadWriteFromCache(query: Query<D>, sql: Boolean) {
109109
val cache = if (sql) {
110110
Utils.dbFile.delete()
111-
SqlNormalizedCacheFactory(Utils.dbName, withDates = true).create()
111+
SqlNormalizedCacheFactory(name = Utils.dbName).create()
112112
} else {
113113
MemoryCacheFactory().create()
114114
}

gradle/libraries.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ androidx-sqlite = "2.3.1"
1616
# This is used by the gradle integration tests to get the artifacts locally
1717
apollo = "4.0.0-rc.2-SNAPSHOT"
1818
apollo-execution = "0.0.2"
19-
apollo-normalizedcache-incubating-snapshot = "0.0.2-SNAPSHOT"
19+
apollo-normalizedcache-incubating-snapshot = "0.0.3-SNAPSHOT"
2020
# Used by the apollo-tooling project which uses a published version of Apollo
2121
apollo-published = "4.0.0-rc.1"
2222
atomicfu = "0.24.0"

0 commit comments

Comments
 (0)