Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failure - com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest - array lengths differed #19

Closed
jwaterloo opened this issue Nov 26, 2020 · 1 comment
Assignees
Labels
good first issue Good for newcomers

Comments

@jwaterloo
Copy link

[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest
[ 5 B| 2 B/s]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.85 s <<< FAILURE! - in com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest
[ERROR] test(com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest) Time elapsed: 2.845 s <<< FAILURE!
org.junit.internal.ArrayComparisonFailure: array lengths differed, expected.length=299 actual.length=283; arrays first differed at element [10]; expected:<13> but was:<10>
at com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest.test(FormatterRdbVisitorTest.java:41)
Caused by: java.lang.AssertionError: expected:<13> but was:<10>
at com.moilioncircle.redis.rdb.cli.ext.rct.FormatterRdbVisitorTest.test(FormatterRdbVisitorTest.java:41)

[INFO] Running com.moilioncircle.redis.rdb.cli.glossary.JsonEscapeTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.moilioncircle.redis.rdb.cli.glossary.JsonEscapeTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] FormatterRdbVisitorTest.test:41 array lengths differed, expected.length=299 actual.length=283; arrays first differed at element [10]; expected:<13> but was:<10>
[INFO]
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.599 s
[INFO] Finished at: 2020-11-25T23:03:18-05:00
[INFO] Final Memory: 27M/412M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project redis-rdb-cli: There are test failures.
[ERROR]
[ERROR] Please refer to C:\tutorials\Redis\export-import\redis-rdb-cli\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

@leonchen83
Copy link
Owner

@jwaterloo
that because your /path/to/redis-rdb-cli/src/test/resources/dumpV8-expect.txt line end at CRLF but should be LF in your system.
I already fixed the test case. pull code and run test again.

@leonchen83 leonchen83 self-assigned this Nov 26, 2020
@leonchen83 leonchen83 added the good first issue Good for newcomers label Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants