diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/route_tests.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/route_tests.rs b/tests/route_tests.rs index bae58ee..e00510e 100644 --- a/tests/route_tests.rs +++ b/tests/route_tests.rs | |||
@@ -131,8 +131,8 @@ FQIDAQAB | |||
131 | } | 131 | } |
132 | fn mocked_transaction2() -> Transaction { | 132 | fn mocked_transaction2() -> Transaction { |
133 | Transaction { | 133 | Transaction { |
134 | by: "mock_transaction_source".to_owned(), | 134 | by: "mock_transaction_source2".to_owned(), |
135 | source: "mock_transaction_source".to_owned(), | 135 | source: "mock_transaction_source2".to_owned(), |
136 | target: "mock_transaction_target".to_owned(), | 136 | target: "mock_transaction_target".to_owned(), |
137 | amount: 25, | 137 | amount: 25, |
138 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 09).and_hms(14, 30, 00), | 138 | timestamp: chrono::NaiveDate::from_ymd(2021, 04, 09).and_hms(14, 30, 00), |
@@ -214,8 +214,8 @@ FQIDAQAB | |||
214 | 214 | ||
215 | let res = warp::test::request() | 215 | let res = warp::test::request() |
216 | .method("POST") | 216 | .method("POST") |
217 | .json(&mocked_transaction()) | 217 | .json(&mocked_transaction2()) |
218 | .header("Authorization", "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aGEiOiJmODRmNTBjNjZkNDdhZTAzNzcwZjY0ZjUwMDgzMTAwMSIsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoyMDE2MjM5MDIyfQ.APOAH0nOqxnW5FoRjM-T9Mm0VThLrDZspKeTGXioKZJNkAMc6ZbQ_wqdvRXG-GRzivyVAW8849kbnQ-smWFHQjftKEF-aiKxWeO17vsQ4j5I9UdwwPJpGDbxU5vBgLAPXYG8wEndvC4bgy_a0P3FAlD8gIHebMh1YsbyfyEc6DFD4nvZwHzRFJtR43xRfCVgFAjSF_pB5YPAccB0DmYz_uKaGj69-9eNQYKr6giwXaiYIcF-G561kKLmTFPjCuACYNLMHONjwg8i0pT-tdiZgS7SiiWAOAo_98X54W0bCvn6i5tUPpzWKv61QXCWDdHi831YA8kMNJ2az_baRMtmhg") | 218 | .header("Authorization", "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0aGEiOiI2NDNmOGYzMjkxNTMzNTMzOTcwMDZmNjVmOWQ1ZmViMyIsImlhdCI6MTUxNjIzOTAyMiwiZXhwIjoyMDE2MjM5MDIyfQ.yNca1RJOkSEKoF7S4PSF4iB8zmnj13ujcfsdVRcJMcQNN4CxP-pJwbUBdRgR8kNwdfLP3nLo0UBwevP42TBoujMKx7oaIl-JXsO37x7Y9GWMAHYBxEOoq1EsBeaxv9pCdyZvuVeJYIMrOpzW7oTcF4tHHvmvySD2ITnQTWu_ioCXEFdX21QQIvsqpRn7XumfCMvWfUy_C2XTFIQEAGdakPmkZ2Xt66k9zhT9hazJgAwELv5VyMV54iF8vyvvmnLkiODwTt_8VdqC6fr6jPwYaP1mzgd58r0fM76Wu0g9tIXVU83rcFMRsm_faXGbsrDJIQ06-fAO_D1sh74fhndK_g") |
219 | .path("/transaction") | 219 | .path("/transaction") |
220 | .reply(&filter) | 220 | .reply(&filter) |
221 | .await; | 221 | .await; |