nwaku/tests/testlib/assertions.nim
Álex Cabeza Romero 817b2e067a
test(lightpush): Lightpush functional tests (#2269)
* Add ligthpush payload tests.
* Add end to end lightpush tests.
* updating vendor/nim-unittest2 to protect against core dump issue
* Enable "Valid Payload Sizes" test again
---------
Co-authored-by: Ivan FB <128452529+Ivansete-status@users.noreply.github.com>
2024-02-06 17:37:42 +01:00

5 lines
110 B
Nim

import chronos
template assertResultOk*[T, E](result: Result[T, E]) =
assert result.isOk(), result.error()