Skip to content

Commit 4eed020

Browse files
committed
added ignore instead to git tests
1 parent dc9746a commit 4eed020

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tmc-langs-util/src/task_executor/course_refresher.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,6 @@ fn update_or_clone_repository(
285285
course_git_branch: &str,
286286
old_cache_path: &Path,
287287
) -> Result<(), UtilError> {
288-
// NOP during tests
289-
if cfg!(test) {
290-
return Ok(());
291-
}
292-
293288
if course_source_backend != &SourceBackend::Git {
294289
log::error!("Source types other than git not yet implemented");
295290
return Err(UtilError::UnsupportedSourceBackend);
@@ -757,6 +752,7 @@ mod test {
757752
}
758753

759754
#[test]
755+
#[ignore = "uses git"]
760756
fn updates_repository() {
761757
init();
762758

@@ -792,6 +788,7 @@ mod test {
792788
}
793789

794790
#[test]
791+
#[ignore = "uses git"]
795792
fn clones_repository() {
796793
init();
797794

0 commit comments

Comments
 (0)