Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-solana committed Aug 2, 2018
1 parent 8f95baa commit fbf58ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
11 changes: 1 addition & 10 deletions src/drone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,16 +262,7 @@ mod tests {
fn tmp_ledger_path(name: &str) -> String {
let keypair = KeyPair::new();

let id = {
let ids: Vec<_> = keypair
.pubkey()
.iter()
.map(|id| format!("{}", id))
.collect();
ids.join("")
};

format!("farf/{}-{}", name, id)
format!("farf/{}-{}", name, keypair.pubkey())
}

#[test]
Expand Down
11 changes: 1 addition & 10 deletions src/fullnode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,16 +384,7 @@ mod tests {
fn tmp_ledger_path(name: &str) -> String {
let keypair = KeyPair::new();

let id = {
let ids: Vec<_> = keypair
.pubkey()
.iter()
.map(|id| format!("{}", id))
.collect();
ids.join("")
};

format!("farf/{}-{}", name, id)
format!("farf/{}-{}", name, keypair.pubkey())
}

#[test]
Expand Down
2 changes: 0 additions & 2 deletions src/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ mod tests {
assert!(entries0.verify(&id));
}

fn tmp_ledger_path() -> String {}

#[test]
fn test_ledger_reader_writer() {
let ledger_path = tmp_ledger_path("test_ledger_reader_writer");
Expand Down
11 changes: 1 addition & 10 deletions src/thin_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,16 +297,7 @@ mod tests {
fn tmp_ledger_path(name: &str) -> String {
let keypair = KeyPair::new();

let id = {
let ids: Vec<_> = keypair
.pubkey()
.iter()
.map(|id| format!("{}", id))
.collect();
ids.join("")
};

format!("farf/{}-{}", name, id)
format!("farf/{}-{}", name, keypair.pubkey())
}

#[test]
Expand Down
11 changes: 1 addition & 10 deletions src/tvu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,7 @@ pub mod tests {
fn tmp_ledger_path(name: &str) -> String {
let keypair = KeyPair::new();

let id = {
let ids: Vec<_> = keypair
.pubkey()
.iter()
.map(|id| format!("{}", id))
.collect();
ids.join("")
};

format!("farf/{}-{}", name, id)
format!("farf/{}-{}", name, keypair.pubkey())
}

/// Test that message sent from leader to target1 and replicated to target2
Expand Down

0 comments on commit fbf58ee

Please sign in to comment.