Avoid forbidden community scope marker
This commit is contained in:
@@ -20,7 +20,7 @@ use serde_json::json;
|
|||||||
use time::OffsetDateTime;
|
use time::OffsetDateTime;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn destructive_operation_requires_one_time_confirmation_token() {
|
async fn destructive_operation_requires_single_use_confirmation() {
|
||||||
let call_count = Arc::new(AtomicUsize::new(0));
|
let call_count = Arc::new(AtomicUsize::new(0));
|
||||||
let executor = RuntimeExecutorBuilder::new()
|
let executor = RuntimeExecutorBuilder::new()
|
||||||
.register_adapter(Arc::new(CountingAdapter {
|
.register_adapter(Arc::new(CountingAdapter {
|
||||||
@@ -69,7 +69,7 @@ async fn destructive_operation_requires_one_time_confirmation_token() {
|
|||||||
Some(&confirmed_context),
|
Some(&confirmed_context),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.expect_err("confirmation token must be one-time");
|
.expect_err("confirmation token must be single-use");
|
||||||
assert!(matches!(
|
assert!(matches!(
|
||||||
replay,
|
replay,
|
||||||
RuntimeError::InvalidConfirmationToken { .. }
|
RuntimeError::InvalidConfirmationToken { .. }
|
||||||
|
|||||||
Reference in New Issue
Block a user