Skip to content

Commit

Permalink
Fixed little bug where 153 was 152. Correct amount of courses in cour…
Browse files Browse the repository at this point in the history
…se.json is 153 (checked with grep)
  • Loading branch information
wakr committed Sep 10, 2015
1 parent 5f5fe3a commit d30a825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void downloadAllExercises() throws Exception {
List<Exercise> exercises = download.get();
Path exercisePath = folder.resolve("2013_ohpeJaOhja/viikko1/Viikko1_001.Nimi");

assertEquals(152, exercises.size());
assertEquals(153, exercises.size());
assertTrue(Files.exists(exercisePath));

FileUtils.deleteDirectory(exercisePath.toFile());
Expand All @@ -194,7 +194,7 @@ public void testDownloadingWithProgress() throws Exception {
core.downloadExercises(folder, 35, observerMock);
List<Exercise> exercises = download.get();
Path exercisePath = folder.resolve("2013_ohpeJaOhja/viikko1/Viikko1_001.Nimi");
assertEquals(152, exercises.size());
assertEquals(153, exercises.size());
assertTrue(Files.exists(exercisePath));
FileUtils.deleteDirectory(exercisePath.toFile());
assertFalse(Files.exists(exercisePath));
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/json/course.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"deadline": null,
"checksum": "5e8749d5450d19c3181d9271b726eb0c",
"return_url": "https://example.com/exercises/286/submissions.json",
"zip_url": "http://example.com/staging/exercises/286.zip",
"zip_url": "https://example.com/staging/exercises/286.zip",
"returnable": true,
"requires_review": false,
"attempted": false,
Expand Down

0 comments on commit d30a825

Please sign in to comment.