Skip to content

Commit

Permalink
feat: support maximum check (databendlabs#13992)
Browse files Browse the repository at this point in the history
* feat: support maximum check

* fix unit test case

* add test case
  • Loading branch information
guojidan authored Dec 13, 2023
1 parent e69c920 commit a639b33
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/query/service/tests/it/sessions/session_setting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ async fn test_session_setting_override() -> Result<()> {
let overrided = settings.get_max_storage_io_requests()?;
let expect = 1000;
assert_eq!(overrided, expect);
settings.set_setting("max_storage_io_requests".to_string(), "3000".to_string())?;
settings.set_setting("max_storage_io_requests".to_string(), "300".to_string())?;
let actual = settings.get_max_storage_io_requests()?;
let expect = 3000;
let expect = 300;
assert_eq!(actual, expect);
}

Expand Down
Loading

0 comments on commit a639b33

Please sign in to comment.