Skip to content

Commit

Permalink
TEMPORARY failure injection to see if we are testing what we think th…
Browse files Browse the repository at this point in the history
…ey are

Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson committed Oct 21, 2024
1 parent 594892e commit b025536
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test-components/components/outbound-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ impl Component {
ensure_matches!(rowset.rows[1][2], postgres::DbValue::Time((h, m, s, ns)) if h == 14 && m == 15 && s == 16 && ns == 17);
ensure_matches!(rowset.rows[1][3], postgres::DbValue::Datetime((y, _, _, h, _, _, ns)) if y == 1989 && h == 1 && ns == 4);

// FAKE FAKE FAKE DELIBERATE FAILURE TO CHECK WE ARE TESTING WHAT WE THINK WE ARE
ensure_matches!(rowset.rows[1][2], postgres::DbValue::Time((h, m, s, ns)) if h == 99 && m == 0 && s == 77 && ns == 17);

let rowset = ensure_ok!(nullable(&conn));
ensure!(rowset.rows.iter().all(|r| r.len() == 1));
ensure!(matches!(rowset.rows[0][0], postgres::DbValue::DbNull));
Expand Down

0 comments on commit b025536

Please sign in to comment.