chore: cleanup
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
shimun 2023-07-09 20:22:44 +02:00
parent df85bad9a4
commit 1183ba0d73
Signed by: shimun
GPG Key ID: E0420647856EA39E
2 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@ pipeline:
test: test:
image: rust image: rust
commands: commands:
- cargo test - cargo test

View File

@ -6,14 +6,13 @@ use std::fmt::Debug;
use std::net::SocketAddr; use std::net::SocketAddr;
use std::path::{self, PathBuf}; use std::path::{self, PathBuf};
use std::sync::Arc; use std::sync::Arc;
use std::time::{SystemTime, UNIX_EPOCH}; use std::time::SystemTime;
use anyhow::Context; use anyhow::Context;
use axum::body; use axum::body;
use axum::extract::rejection::QueryRejection; use axum::extract::rejection::QueryRejection;
use axum::extract::{Query, State}; use axum::extract::{Query, State};
use chrono::Duration;
use ssh_cert_dist_common::*; use ssh_cert_dist_common::*;
@ -475,7 +474,8 @@ mod tests {
user_key, user_key,
unix_time(SystemTime::now()), unix_time(SystemTime::now()),
unix_time(SystemTime::now() + validity), unix_time(SystemTime::now() + validity),
); )
.unwrap();
builder builder
.valid_principal("git") .valid_principal("git")