fc-common: add unsupported_timeout for queue runner
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I76805c31bbfc11e0a596c6b3b88c52c06a6a6964
This commit is contained in:
parent
b43a11756a
commit
f5c16aef83
3 changed files with 66 additions and 1 deletions
|
|
@ -923,3 +923,20 @@ unsupported_timeout = "2h 30m"
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod humantime_option_test {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_option_humantime_missing() {
|
||||
let toml = r#"
|
||||
workers = 4
|
||||
poll_interval = 5
|
||||
build_timeout = 3600
|
||||
work_dir = "/tmp/fc"
|
||||
"#;
|
||||
let config: QueueRunnerConfig = toml::from_str(toml).unwrap();
|
||||
assert_eq!(config.unsupported_timeout, None);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue