Skip to content

Commit 777402a

Browse files
committed
update demo/EnumIntegrationTest.kt
1 parent 90391c2 commit 777402a

File tree

1 file changed

+1
-7
lines changed
  • firebase-dataconnect/connectors/src/androidTest/kotlin/com/google/firebase/dataconnect/connectors/demo

1 file changed

+1
-7
lines changed

firebase-dataconnect/connectors/src/androidTest/kotlin/com/google/firebase/dataconnect/connectors/demo/EnumIntegrationTest.kt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import io.kotest.property.checkAll
4444
import io.kotest.property.exhaustive.enum
4545
import java.util.UUID
4646
import kotlinx.coroutines.test.runTest
47-
import org.junit.Ignore
4847
import org.junit.Test
4948

5049
class EnumIntegrationTest : DemoConnectorIntegrationTestBase() {
@@ -484,7 +483,7 @@ class EnumIntegrationTest : DemoConnectorIntegrationTestBase() {
484483
checkAll(Exhaustive.enum<N5ekmae3jn>()) { enumValue ->
485484
val tagValue = Arb.dataConnect.tag().next(randomSource())
486485
val key = connector.enumKeyInsert.execute(enumValue) { tag = tagValue }.data.key
487-
key.asClue { it.enumValue shouldBe enumValue }
486+
key.asClue { it.enumValue shouldBe Known(enumValue) }
488487
val queryResult = connector.enumKeyGetByKey.execute(key)
489488
queryResult.asClue {
490489
val item = it.data.item.shouldNotBeNull()
@@ -498,11 +497,6 @@ class EnumIntegrationTest : DemoConnectorIntegrationTestBase() {
498497
//////////////////////////////////////////////////////////////////////////////////////////////////
499498

500499
@Test
501-
@Ignore(
502-
"TODO(cl/785956954) Re-enable this test once testing against a data connect " +
503-
"emulator that fixes serialization when more than one user-defined enum type " +
504-
"in the data"
505-
)
506500
fun multipleEnumColumns() = runTest {
507501
checkAll(NUM_ITERATIONS, Arb.enum<N5ekmae3jn>(), Arb.enum<S7yayynb25>()) { enum1, enum2 ->
508502
val key = connector.multipleEnumColumnsInsert.execute(enum1, enum2).data.key

0 commit comments

Comments
 (0)