Skip to content

Commit 554cd38

Browse files
committed
comment out some tests for upkeep
this logic moved to get_pending_activation now.
1 parent fa32375 commit 554cd38

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/upkeep.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ mod tests {
784784
.await;
785785
}
786786

787+
/*
787788
#[tokio::test]
788789
async fn test_processing_attempts_exceeded_discard() {
789790
let config = create_config();
@@ -832,6 +833,7 @@ mod tests {
832833
"complete tasks were removed"
833834
);
834835
}
836+
*/
835837

836838
#[tokio::test]
837839
async fn test_remove_at_remove_failed_publish_to_kafka() {
@@ -921,6 +923,7 @@ mod tests {
921923
);
922924
}
923925

926+
/*
924927
#[tokio::test]
925928
async fn test_expired_discard() {
926929
let config = create_config();
@@ -949,7 +952,8 @@ mod tests {
949952
)
950953
.await;
951954
952-
assert_eq!(result_context.expired, 2); // 0/2 removed as expired
955+
// expiration happens in get_pending_activation now
956+
assert_eq!(result_context.expired, 0);
953957
assert_eq!(result_context.completed, 1); // 1 complete
954958
assert_eq!(
955959
store
@@ -985,6 +989,7 @@ mod tests {
985989
"fourth task should be kept"
986990
);
987991
}
992+
*/
988993

989994
#[tokio::test]
990995
async fn test_delay_elapsed() {

0 commit comments

Comments
 (0)