BIT-2297: Update the values for UriMatchType to ensure a proper migration (#1313)

This commit is contained in:
David Perez 2024-04-26 13:55:53 -05:00 committed by Álison Fernandes
parent 986d454f16
commit 2ae3ff64a8
2 changed files with 8 additions and 8 deletions

View file

@ -24,16 +24,16 @@ enum class UriMatchType(
*/
STARTS_WITH(2),
/**
* The URIs match if they are exactly the same.
*/
EXACT(3),
/**
* The URIs match if the "test" URI matches the known URI according to a specified regular
* expression for the item.
*/
REGULAR_EXPRESSION(3),
/**
* The URIs match if they are exactly the same.
*/
EXACT(4),
REGULAR_EXPRESSION(4),
/**
* The URIs should never match.

View file

@ -520,7 +520,7 @@ class SettingsDiskSourceTest {
.edit {
putInt(
"${defaultUriMatchTypeBaseKey}_$mockUserId",
3,
4,
)
}
val actual = settingsDiskSource.getDefaultUriMatchType(userId = mockUserId)
@ -550,7 +550,7 @@ class SettingsDiskSourceTest {
0,
)
assertEquals(
3,
4,
actual,
)
}