You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -44,35 +42,19 @@ class CorruptDiskFullDatabaseTest : DatabaseCorruption() {
44
42
)
45
43
}
46
44
DatabaseType.FRAMEWORK-> {
47
-
// FRAMEWORK still complains about disk full corruption for API < 36:
45
+
// FRAMEWORK still complains about disk full corruption:
48
46
// error while compiling: "create table nums (id int)": DBError { info: "SqliteFailure(Error { code: DiskFull, extended_code: 13 }, Some(\"database or disk is full\"))", kind: Other }
49
-
if (Build.VERSION.SDK_INT_FULL<Build.VERSION_CODES_FULL.BAKLAVA) {
50
-
MatcherAssert.assertThat(
51
-
setupException.javaClass,
52
-
Matchers.typeCompatibleWith(
53
-
SQLiteFullException::class.java,
54
-
),
55
-
)
56
-
// Java: "database or disk is full (code 13)"
57
-
MatcherAssert.assertThat(
58
-
setupException.localizedMessage,
59
-
Matchers.containsString("database or disk is full"),
60
-
)
61
-
// On API >= 36 we get a disk I/O exception
62
-
} else {
63
-
MatcherAssert.assertThat(
64
-
setupException.javaClass,
65
-
Matchers.typeCompatibleWith(
66
-
SQLiteDiskIOException::class.java,
67
-
),
68
-
)
69
-
70
-
// Java: "database or disk is full (code 13)"
71
-
MatcherAssert.assertThat(
72
-
setupException.localizedMessage,
73
-
Matchers.containsString("disk I/O error"),
74
-
)
75
-
}
47
+
MatcherAssert.assertThat(
48
+
setupException.javaClass,
49
+
Matchers.typeCompatibleWith(
50
+
SQLiteFullException::class.java,
51
+
),
52
+
)
53
+
// Java: "database or disk is full (code 13)"
54
+
MatcherAssert.assertThat(
55
+
setupException.localizedMessage,
56
+
Matchers.containsString("database or disk is full"),
0 commit comments