connell-class / revassess

this is a trial repo for making a template for the revature assessment
2 stars 11 forks source link

Tier 3 Test 3 and 4 Weirdness #37

Closed MrNoseybonk closed 4 years ago

MrNoseybonk commented 4 years ago

Describe the bug I run Answer3Tests.java by itself, but if I run Tier3Tests.java test 3 fails. Also, test 4 passes even though I haven't done anything with it yet.

To Reproduce Steps to reproduce the behavior:

  1. Have an answer for test 1, 2, and 3, but none for 4.
  2. Run Answer3Tests by itself and see that it passes.
  3. Run Tier3Tests and see that test3 fails, yet test4 passes.

Expected behavior Test 3 should pass regardless of whether it is ran by itself or in the suite. Also, test 4 shouldn't pass when nothing has been done to answer it.

Screenshots Test 3 ran by itself Tier3Test3Solo The entire suite being ran Tier3TestWeirdness

connellrobert commented 4 years ago

This is temporarily fixed in template repo. The issue is the amount of connections that are being made to the db. The best solution is going to involve reconfiguring hibernate or changing the test implementation. For now, just delete one of the asserts in test 2 to resolve it.