aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_commands.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_commands.rs b/tests/test_commands.rs
index 10e6c9c..1031c8b 100644
--- a/tests/test_commands.rs
+++ b/tests/test_commands.rs
@@ -141,7 +141,7 @@ mod command_parser_tests {
/// Tests for the command execution logic in `RedisCommands::execute`.
mod command_execution_tests {
- use codecrafters_redis::resp_commands::RedisCommands;
+ use codecrafters_redis::{resp_commands::RedisCommands, Config};
use std::time::Duration;
use super::*;
@@ -149,7 +149,8 @@ mod command_execution_tests {
/// Helper to parse and execute a command against a cache.
fn run_command(cache: &SharedCache, args: &[&str]) -> Vec<u8> {
let command = RedisCommands::from(build_command_from_str_slice(args));
- command.execute(Arc::clone(cache))
+ let config = Arc::new(Some(Config::default()));
+ command.execute(Arc::clone(cache), config)
}
#[test]