Skip to content

Commit

Permalink
Adjust test for 'UniqueConstraintViolation'
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed Jan 6, 2024
1 parent b0d96cd commit f7d62ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/real/enterprise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ fn ent_unique_job_until_success() {

// as a result:
let res = producer_b.enqueue(job).unwrap_err();
if let error::Error::Protocol(error::Protocol::Internal { msg }) = res {
assert_eq!(msg, "NOTUNIQUE Job not unique");
if let error::Error::Protocol(error::Protocol::UniqueConstraintViolation { msg }) = res {
assert_eq!(msg, "Job not unique");
} else {
panic!("Expected protocol error.")
}
Expand Down

0 comments on commit f7d62ac

Please sign in to comment.