Skip to content

Commit 3aba6ea

Browse files
committed
fix(golang): the guest's EQL round-trip test passes the expected context
The context_field change gave validate::record_tree and decrypt_record an expected-context parameter. The test behind the guest's eql feature still called both the old way, so `cargo test --all-features` on the guest did not compile. Both calls pass None: the plan has a context of its own.
1 parent aad851c commit 3aba6ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • languages/golang/encrypt/guest/src

‎languages/golang/encrypt/guest/src/ops.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,9 +735,9 @@ mod tests {
735735
assert_eq!(eql["hm"].as_str().unwrap().len(), 64);
736736

737737
// Opens back through the EQL type's own decryption.
738-
validate::record_tree(&sealed, &plan).expect("the tree fits");
738+
validate::record_tree(&sealed, &plan, None).expect("the tree fits");
739739
let opened =
740-
block_on(decrypt_record(Scope::Client(&cipher), &sealed, &plan)).expect("opens");
740+
block_on(decrypt_record(Scope::Client(&cipher), &sealed, &plan, None)).expect("opens");
741741
let FfiValue::Object(values) = decode_value(&opened).expect("a value") else {
742742
panic!("an object")
743743
};

0 commit comments

Comments
 (0)