Skip to content

Commit fda0593

Browse files
author
Joshua Nelson
committed
Make sure we're testing what we think we're testing
1 parent 2c2d9b0 commit fda0593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/simple_api/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,7 +2098,8 @@ pub(crate) mod tests {
20982098
assert_eq!(err.status, YDB_ERR_NAMECOUNT2HI);
20992099

21002100
// Passing a buffer that has insufficient capacity for an error should resize the buffer
2101-
delete_excl_st(YDB_NOTTP, Vec::with_capacity(1), &["^global"]).unwrap();
2101+
let err = delete_excl_st(YDB_NOTTP, Vec::with_capacity(1), &["^global"]).unwrap_err();
2102+
assert_eq!(err.status, YDB_ERR_INVVARNAME);
21022103
}
21032104

21042105
#[test]

0 commit comments

Comments
 (0)