Skip to content

Commit

Permalink
Remove setTraits test with transiency
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Oct 4, 2024
1 parent 0a8433c commit 0f31f7f
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions FlagsmithClient/src/test/java/com/flagsmith/TraitsTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,32 +104,6 @@ class TraitsTests {
}
}

@Test
fun testSetTraitsWithTransient() {
mockServer.mockResponseFor(MockEndpoint.SET_TRANSIENT_TRAITS)
runBlocking {
val result =
flagsmith.setTraitsSync(
listOf(
Trait(
key = "trait-one-with-transient",
value = "transient-trait-one",
transient = true
),
Trait(
key = "trait-two",
value = "trait-two-value",
transient = false
),
), "identity-with-transient-traits")
assertTrue(result.isSuccess)
assertEquals("trait-one-with-transient", result.getOrThrow().first().key)
assertEquals("transient-trait-one", result.getOrThrow().first().stringValue)
assertEquals("identity-with-transient-traits", result.getOrThrow().first().identity.identifier)
assertEquals(true, result.getOrThrow().first().transient)
}
}

@Test
fun testSetTraitInteger() {
mockServer.mockResponseFor(MockEndpoint.SET_TRAIT_INTEGER)
Expand Down

0 comments on commit 0f31f7f

Please sign in to comment.