updated test.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				MoreThanText/morethantext/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	MoreThanText/morethantext/pipeline/head This commit looks good
				
			This commit is contained in:
		
							
								
								
									
										11
									
								
								src/queue.rs
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/queue.rs
									
									
									
									
									
								
							@@ -38,9 +38,16 @@ mod messages {
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
    fn from_sender() {
 | 
			
		||||
        let (tx, _) = channel();
 | 
			
		||||
        let (tx, rx) = channel();
 | 
			
		||||
        match tx.into() {
 | 
			
		||||
            Message::Register(_) => {}
 | 
			
		||||
            Message::Register(result) => {
 | 
			
		||||
                let (req, _) = empty_request();
 | 
			
		||||
                result.send(req.into()).unwrap();
 | 
			
		||||
                match rx.recv().unwrap() {
 | 
			
		||||
                    Message::Req(_) => {}
 | 
			
		||||
                    _ => unreachable!("should have been a request"),
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            _ => unreachable!("should have been a register"),
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user