jono 0.1.5

Priority Job Queue on Redis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod common;

use common::create_test_context;
use jono_core::{Error, Inspector, generate_job_id};

#[test]
fn test_job_not_found_for_metadata() {
    let context = create_test_context("test_not_found");
    let inspector = Inspector::with_context(context);
    let unknown_job_id = generate_job_id();
    assert!(matches!(
        inspector.get_job_metadata(&unknown_job_id).err().unwrap(),
        Error::NotFound(_)
    ));
}