Commit f25bf53
committed
fix(protect): fix flaky escaped-containment test comparing non-deterministic ciphertexts
The test encrypted the same plaintext twice and compared ciphertexts
directly, which fails because encryption is non-deterministic. Instead,
verify the escaped format structurally and use the unwrapped value
directly for the PG query.1 parent 2d9d397 commit f25bf53
1 file changed
+5
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | 690 | | |
699 | 691 | | |
700 | 692 | | |
| |||
709 | 701 | | |
710 | 702 | | |
711 | 703 | | |
712 | | - | |
713 | | - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
714 | 707 | | |
715 | | - | |
| 708 | + | |
716 | 709 | | |
717 | 710 | | |
718 | 711 | | |
719 | | - | |
| 712 | + | |
720 | 713 | | |
721 | 714 | | |
722 | 715 | | |
| |||
0 commit comments