Skip to content

Commit

Permalink
Revert "hardcode config value in test"
Browse files Browse the repository at this point in the history
This reverts commit 3f7ac41.
  • Loading branch information
TBS1996 committed Jan 13, 2023
1 parent eb96918 commit a35fc52
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions relay-server/src/actors/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2448,14 +2448,9 @@ mod tests {
#[test]
fn test_it_keeps_or_drops_transactions() {
relay_test::setup();

// an empty json still produces a valid config
let json_config = serde_json::json!({});

let config = Config::from_json_value(json_config.clone()).unwrap();
let arconfig = Arc::new(Config::from_json_value(json_config).unwrap());

// it really shouldn't be necessary to start an entire service for a unit test
let config = Config::from_path("./../.relay").unwrap();
let arconfig = Arc::new(Config::from_path("./../.relay").unwrap());
// shouldn't be necessary to start an entire service for a unit test
// it was ported from a python integration test
ServiceState::start(arconfig).unwrap();
let service = create_test_processor(config);
Expand Down

0 comments on commit a35fc52

Please sign in to comment.