-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
12205c0
commit 29ad26e
Showing
1 changed file
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(), | ||
|
@@ -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() | ||
|