Skip to content

Commit 89a59bf

Browse files
davidmotsonDavid Motsonashvili
andauthored
fix tests for bom auth fix (#7262)
Co-authored-by: David Motsonashvili <[email protected]>
1 parent fc55530 commit 89a59bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/src/test/kotlin/com/google/firebase/gradle/plugins/GenerateTutorialBundleTests.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ class GenerateTutorialBundleTests : FunSpec() {
242242
@Test
243243
fun `throws an error if an unreleased artifact is used`() {
244244
shouldThrowSubstring("missing from gmaven", "com.google.firebase:firebase-auth") {
245-
every { service.latestVersionOrNull(any()) } answers { null }
245+
every { service.latestNonAlphaVersionOrNull(any()) } answers { null }
246246

247247
val task = makeTask { firebaseArtifacts.set(listOf("com.google.firebase:firebase-auth")) }
248248

@@ -293,7 +293,9 @@ class GenerateTutorialBundleTests : FunSpec() {
293293
val (groupId, artifactId, version) = it.split(":")
294294
"$groupId:$artifactId" to version
295295
}
296-
.onEach { entry -> every { service.latestVersionOrNull(entry.key) } answers { entry.value } }
296+
.onEach { entry ->
297+
every { service.latestNonAlphaVersionOrNull(entry.key) } answers { entry.value }
298+
}
297299
}
298300

299301
private fun makeTutorial(

0 commit comments

Comments
 (0)