Updates
This commit is contained in:
		@@ -204,13 +204,13 @@ async fn test_list_jobs() {
 | 
			
		||||
    let result = server.list_jobs().await;
 | 
			
		||||
    assert!(result.is_ok());
 | 
			
		||||
    
 | 
			
		||||
    let jobs = result.unwrap();
 | 
			
		||||
    assert!(jobs.len() >= 3); // Should have at least the 3 jobs we created
 | 
			
		||||
    let job_ids = result.unwrap();
 | 
			
		||||
    assert!(job_ids.len() >= 3); // Should have at least the 3 jobs we created
 | 
			
		||||
    
 | 
			
		||||
    // Verify job structure
 | 
			
		||||
    for job in jobs {
 | 
			
		||||
        assert!(!job.id.is_empty());
 | 
			
		||||
        assert!(uuid::Uuid::parse_str(&job.id).is_ok());
 | 
			
		||||
    // Verify job IDs are valid UUIDs
 | 
			
		||||
    for id in job_ids {
 | 
			
		||||
        assert!(!id.is_empty());
 | 
			
		||||
        assert!(uuid::Uuid::parse_str(&id).is_ok());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -337,7 +337,10 @@ async fn test_get_job_logs() {
 | 
			
		||||
    assert!(result.is_ok());
 | 
			
		||||
    
 | 
			
		||||
    let logs_result = result.unwrap();
 | 
			
		||||
    assert!(!logs_result.logs.is_empty());
 | 
			
		||||
    match logs_result.logs {
 | 
			
		||||
        Some(ref logs) => assert!(!logs.is_empty()),
 | 
			
		||||
        None => {} // acceptable when no logs are available
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#[tokio::test]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user