Skip to content

Some tests always pass due to wrong assertion #2983

@hamorillo

Description

@hamorillo

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

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions