Use different image

This commit is contained in:
cetra3 2023-07-12 15:40:04 +09:30
parent a25558ce2d
commit 2b5ecf5de0
2 changed files with 11 additions and 4 deletions

View file

@ -1,8 +1,15 @@
pipeline:
cargo_fmt:
image: rustdocker/rust:nightly
image: rust:1.70-bullseye
environment:
# store cargo data in repo folder so that it gets cached between steps
CARGO_HOME: .cargo
commands:
- /root/.cargo/bin/cargo fmt -- --check
# need make existing toolchain available
- cp -r -n /usr/local/cargo .cargo
- rustup toolchain install nightly
- rustup component add rustfmt --toolchain nightly
- cargo +nightly fmt -- --check
cargo_check:
image: rust:1.70-bullseye

View file

@ -285,7 +285,7 @@ pub mod test {
#[tokio::test]
async fn test_sign() {
let mut headers = generate_request_headers(&INBOX_URL.as_str()).unwrap();
let mut headers = generate_request_headers(INBOX_URL.as_str()).unwrap();
// use hardcoded date in order to test against hardcoded signature
headers.insert(
"date",
@ -327,7 +327,7 @@ pub mod test {
#[tokio::test]
async fn test_verify() {
let headers = generate_request_headers(&INBOX_URL.as_str()).unwrap();
let headers = generate_request_headers(INBOX_URL.as_str()).unwrap();
let request_builder = ClientWithMiddleware::from(Client::new())
.post(INBOX_URL.to_string())
.headers(headers);