Skip to content

Commit 59075d3

Browse files
authored
Make the module try_into_object_ref public (#38)
* Make the module try_into_object_ref public * Fix formatting issues * Fix test * Fix test
1 parent 929be38 commit 59075d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/services/backends/kubernetes/repositories.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use tokio::time::Instant;
2222

2323
pub mod schema_repository;
2424
mod tests;
25-
mod try_into_object_ref;
25+
pub mod try_into_object_ref;
2626

2727
pub trait SoftDeleteResource:
2828
kube::Resource<Scope = NamespaceResourceScope> + Clone + Debug + Serialize + DeserializeOwned + Send + Sync

src/services/backends/kubernetes/repositories/schema_repository/tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ async fn test_update_schema(ctx: &mut KubernetesSchemaRepositoryTest) {
9393
.await
9494
.expect("Failed to upsert schema");
9595

96+
ctx.api
97+
.wait_for_creation(name.to_string(), ctx.namespace.to_string(), DEFAULT_TEST_TIMEOUT)
98+
.await;
99+
96100
let after = ctx.repository.get(name.to_string()).await.unwrap();
97101

98102
// Assert

0 commit comments

Comments
 (0)