Skip to content

Commit

Permalink
fix: queued update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasti810 committed Jul 29, 2024
1 parent 12205c0 commit 29ad26e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/node_types/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,7 @@ mod tests {
redis_connections.flush_database().unwrap();
}

fn create_new_entry(id: String, value: String) -> OperationInput {
let key = create_signing_key();
fn create_new_entry(id: String, value: String, key: SigningKey) -> OperationInput {
let incoming = Operation::CreateAccount {
id: id.clone(),
value: value.clone(),
Expand Down Expand Up @@ -464,18 +463,13 @@ mod tests {
async fn test_queued_update_gets_finalized() {
let da_layer = Arc::new(LocalDataAvailabilityLayer::new());
let db = Arc::new(setup_db());
let signing_key = create_signing_key();
let sequencer = Arc::new(
Sequencer::new(
db.clone(),
da_layer,
Config::default(),
create_signing_key(),
)
.unwrap(),
Sequencer::new(db.clone(), da_layer, Config::default(), signing_key.clone()).unwrap(),
);

let id = "[email protected]".to_string();
let update_entry = create_new_entry(id.clone(), "test".to_string());
let update_entry = create_new_entry(id.clone(), "test".to_string(), signing_key.clone());

sequencer
.clone()
Expand Down

0 comments on commit 29ad26e

Please sign in to comment.