fossasia / susi_server

SUSI.AI server backend - the Artificial Intelligence server for personal assistants https://susi.ai
GNU Lesser General Public License v2.1
2.5k stars 1.08k forks source link

fixes (#1447): Resolved the assertion error in SusiTutorialTest.java #1448

Closed Dilshaad21 closed 4 years ago

Dilshaad21 commented 4 years ago

Fixes #1447

Changes:

Dilshaad21 commented 4 years ago

@Orbiter @norbusan please review the changes.

norbusan commented 4 years ago

@Dilshaad21 This is not a real solution, it only hides problems, right? The whole point of the tests is to check that basic functionality works. So ignoring errors by catching them is not an acceptable solution.

We need to adjust either the server that the correct answers are returned, or the tests definitions so that the answers are correct, but not ignoring errors.

Dilshaad21 commented 4 years ago

@norbusan should I throw an error in catch when an assertion error occurs.