Redis test fails for trailing slash in directories (#ZG5)

Trailing slashes on directories are also valid

[tester::#ZG5] Running tests for Stage #ZG5 (RDB Persistence - RDB file config)
[tester::#ZG5] $ ./your_program.sh --dir /tmp/rdb-6662 --dbfilename apple.rdb
[your_program] Redis server listening on port 6379
[your_program] Nothing
[tester::#ZG5] [client] $ redis-cli CONFIG GET dir
[tester::#ZG5] [client] Sent bytes: "*3\r\n$6\r\nCONFIG\r\n$3\r\nGET\r\n$3\r\ndir\r\n"
[tester::#ZG5] [client] Received bytes: "*2\r\n$3\r\ndir\r\n$14\r\n/tmp/rdb-6662/\r\n"
[tester::#ZG5] [client] Received RESP array: ["dir", "/tmp/rdb-6662/"]
[tester::#ZG5] Expected element #2 to be "/tmp/rdb-6662", got "/tmp/rdb-6662/"
[tester::#ZG5] Test failed
[tester::#ZG5] Terminating program
[tester::#ZG5] Program terminated successfully

Hey @OlaoluwaM, thanks for highlighting the issue! We’re addressing it in this PR.

Let us know if you spot anything else!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.