defradb icon indicating copy to clipboard operation
defradb copied to clipboard

tests: Add the ability to match against defined errors (errors.Is)

Open fredcarle opened this issue 2 years ago • 0 comments

Currently we only have string matching for expected errors. Add the ability to match against defined errors (errors.Is).

ExpectedError: ds.ErrNotFound
// or
ExpectedErrorString: "datastore: key not found"

fredcarle avatar Dec 16 '22 22:12 fredcarle