Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,8 @@ public void setUp() throws Exception {
}

@After
public void tearDown() {
try {
server.stop();
} catch (InterruptedException e) {
e.printStackTrace();
}
public void tearDown() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of points:

  • when Exception does happen, it will fail the test (before it would have passed). I think that's better but making sure that's what you want.

  • throws is wider than it needs to be (InterruptedException).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I want the test to fail. Yes, I purposefully used Exception, since that is pretty normal in tests since most exceptions should just cause the test to fail.

server.stop();
}

@Test
Expand Down