Skip to content

Commit

Permalink
fix tests (#fixes 24)
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed Nov 24, 2023
1 parent 042f104 commit d1ad890
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,8 @@ public class NotesApiTest

@Test public void createNoteInsufficientPrivileges()
{
try
{
unprivilegedApi.create(POINT, TEXT);
fail();
}
catch(OsmAuthorizationException ignore) {}
Note note = unprivilegedApi.create(POINT, TEXT);
assertTrue(note.comments.get(0).isAnonymous());
}

@Test public void createNoteAsAnonymousAllowed()
Expand Down

0 comments on commit d1ad890

Please sign in to comment.