aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralpaylan2021-04-16 01:55:44 +0300
committeralpaylan2021-04-16 01:55:44 +0300
commitd45c5de41dcaa44fc0e65ed103fa62f48c1c40dc (patch)
treef71856548e723b8d0f4f05301adfac0fab8cff49
parent68dfbf31e94d335e8472cd139bc93681432bf2b4 (diff)
downloadgradecoin-d45c5de41dcaa44fc0e65ed103fa62f48c1c40dc.tar.gz
gradecoin-d45c5de41dcaa44fc0e65ed103fa62f48c1c40dc.tar.bz2
gradecoin-d45c5de41dcaa44fc0e65ed103fa62f48c1c40dc.zip
change mocked db.
-rw-r--r--src/schema.rs2
-rw-r--r--tests/route_tests.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/schema.rs b/src/schema.rs
index b63b0c1..df7b14a 100644
--- a/src/schema.rs
+++ b/src/schema.rs
@@ -152,7 +152,7 @@ pub struct Db {
152} 152}
153 153
154impl Db { 154impl Db {
155 fn new() -> Self { 155 pub fn new() -> Self {
156 let mut users: HashMap<Fingerprint, User> = HashMap::new(); 156 let mut users: HashMap<Fingerprint, User> = HashMap::new();
157 157
158 let bank_acc = MetuId::new("bank".to_owned(), "P7oxDm30g1jeIId".to_owned()).unwrap(); 158 let bank_acc = MetuId::new("bank".to_owned(), "P7oxDm30g1jeIId".to_owned()).unwrap();
diff --git a/tests/route_tests.rs b/tests/route_tests.rs
index 55a536d..09aa10e 100644
--- a/tests/route_tests.rs
+++ b/tests/route_tests.rs
@@ -7,7 +7,7 @@ mod tests {
7 7
8 /// Create a mock database to be used in tests 8 /// Create a mock database to be used in tests
9 fn mocked_db() -> Db { 9 fn mocked_db() -> Db {
10 let db = create_database(); 10 let db = Db::new();
11 11
12 db.users.write().insert( 12 db.users.write().insert(
13 "mock_transaction_source".to_owned(), 13 "mock_transaction_source".to_owned(),