I’m stuck on Stage Read a blob object.
Test fails because they start again automatically.
Logs:
[your_program] dumpty yikes dumpty yikes yikes horsey
28
[tester::#IC4] Output is valid.
29
[tester::#IC4] Test passed.
30
31
[tester::#GG4] Running tests for Stage #GG4 (Initialize the .git directory)
32
[tester::#GG4] $ ./your_program.sh init
33
[your_program] Logs from your program will appear here!
34
[your_program] Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
35
[your_program] at Program.$(String args) in /app/src/Program.cs:line 7
36
[tester::#GG4] Files found in directory:
37
[tester::#GG4] (directory is empty)
38
[tester::#GG4] Expected the “.git” directory to be created
39
[tester::#GG4] Test failed
Any idea ?
Solved: The issue was that we need to put
args[1] and args[2] inside the “if (command == “cat-file”)”, otherwise it fails.
It seems that the tester runs again the solution including the previous steps.