Skip to content

Commit 25b263a

Browse files
committed
tests rename
Signed-off-by: Aminu Oluwaseun Joshua <[email protected]>
1 parent 373f7c7 commit 25b263a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

crates/expressions/tests/validation_test.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,19 +118,19 @@ async fn if_there_is_a_dynamic_provider_and_a_static_provider_then_validation_su
118118
}
119119

120120
#[tokio::test(flavor = "multi_thread")]
121-
async fn static_provider_with_two_static_providers() -> anyhow::Result<()> {
121+
async fn if_there_is_two_static_providers_where_one_has_data_is_valid() -> anyhow::Result<()> {
122122
let resolver = ResolverTester::new()
123123
.with_provider(Box::new(StaticMockProvider::with_variables("foo", "bar")))
124124
.with_provider(Box::new(StaticMockProvider::with_variables("baz", "hay")))
125-
.make_resolver(Some("baz"), Some("hay"))?;
125+
.make_resolver(Some("foo"), None)?;
126126

127127
resolver.validate_variables().await?;
128128

129129
Ok(())
130130
}
131131

132132
#[tokio::test(flavor = "multi_thread")]
133-
async fn static_provider_with_two_static_providers_where_first_provider_does_not_have_data_while_second_provider_does(
133+
async fn if_there_is_two_static_providers_where_first_provider_does_not_have_data_while_second_provider_does(
134134
) -> anyhow::Result<()> {
135135
let resolver = ResolverTester::new()
136136
.with_provider(Box::new(StaticMockProvider::with_variables("foo", "bar")))
@@ -143,8 +143,7 @@ async fn static_provider_with_two_static_providers_where_first_provider_does_not
143143
}
144144

145145
#[tokio::test(flavor = "multi_thread")]
146-
async fn static_provider_with_two_static_providers_neither_has_data_is_invalid(
147-
) -> anyhow::Result<()> {
146+
async fn if_there_is_two_static_providers_neither_having_data_is_invalid() -> anyhow::Result<()> {
148147
let resolver = ResolverTester::new()
149148
.with_provider(Box::new(StaticMockProvider::with_variables("foo", "bar")))
150149
.with_provider(Box::new(StaticMockProvider::with_variables("baz", "hay")))

0 commit comments

Comments
 (0)