Repository navigation
Help Request: unit tests failing with due to line-ending mismatch #13890
Replies: 2 comments
|
I've opened an issue for this, safe to ignore these failures in the meantime. |
0 replies
|
@HanaZah, this should be fixed in the latest commit to master. Do let me know if the issue still persists. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Environment
Intention
First time contributor. I set up the project according to the guide and then run the unit tests.
I get these 4 tests failing on every retry:
testFromLogEntry_logDetailsNotException_shouldGetSerializedPayload()
testGetQuestionResultStatisticsJson()
testFeedbackQuestionDetailsAdaptor_withComposedQuestionDetails_shouldSerializeToConcreteClass()
testFeedbackQuestionDetailsAdaptor_withComposedQuestionDetails_shouldSerializeToConcreteClass()
All 4 fail with similar error:
org.opentest4j.AssertionFailedError: expected: <{
"questionType": "TEXT",
"answer": "My answer"
}> but was: <{
"questionType": "TEXT",
"answer": "My answer"
}>
at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
at org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
at org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
at teammates.test.BaseTestCase.assertEquals(BaseTestCase.java:322)
at teammates.common.util.JsonUtilsTest.testFeedbackResponseDetailsAdaptor_withComposedResponseDetails_shouldSerializeToConcreteClass(JsonUtilsTest.java:42)
In all cases, it's clear the strings are basically the same so the problem is likely with line-ending mismatch.
Can someone help me please?
Resolution Attempt
Neither had any effect.
All reactions