-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Some test files have an assertion like:
Assertions.assertThat(result).isEqualTo(result)This will always be true, so all the tests will pass.
It's easy to find them; search for the previous line of code, but here they are.
Test Files
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
dd-sdk-android/dd-sdk-android-core/src/test/kotlin/com/datadog/android/api/context/UserInfoTest.kt
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
Line 39 in 4e9b85d
| Assertions.assertThat(result).isEqualTo(result) |
I've tried to fix the assertion so:
Assertions.assertThat(result).isEqualTo(event)However, all the tests fail (except NetworkInfoTest). Although I didn't have much time, I think it's likely due to the serialization of map variables, such as Map<String, Any?> = emptyMap().