f1ad5aed

By: Tom Sydney Kerckhove <syd@cs-syd.eu>

Use expectFailing instead of try @SomeException for negative cases

The negative-case tests assert that runSqitchPostgresqlChecks /
runSqitchPersistentChecks throws on a deliberately broken fixture. The
previous shape was 'try @SomeException ... case ... of Left _ -> ...':
broad, swallows any exception, and obscures the intent.

Wrap the negative-case describe blocks with expectFailing instead. The
test body just calls the library function directly; sydtest counts a
failure of the inner test as success. Reads as the literal intent.

Suite timing

Time to Start Worker time Duration Time to finish
Config 0s 3s 3s 3s
Eval 3s 45s 45s 49s
Build 7s 7m27s 2m24s 2m32s
Test - - - -
Deploy - - - -
Suite 0s 8m16s 2m32s 2m32s

Timeline

0s20s40s1m1m20s1m40s2m2m20s