Skip to content

Commit

Permalink
feat: add packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencefidelity committed Aug 9, 2024
1 parent a724ff1 commit 415e56a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@
{
devShells.default = mkShell {
buildInputs = [
docker-client
bunyan-rs
cargo-audit
cargo-expand
cargo-tarpaulin
cargo-udeps
pkg-config
postgresql
sqlx-cli
(rust-bin.stable.latest.default.override {
extensions = [ "rust-analyzer" "rust-src" ];
Expand Down
8 changes: 4 additions & 4 deletions src/email_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ mod tests {
.await;

let _ = email_client
.send_email(&email(), &subject(), &content(), &content())
.send_email(email(), &subject(), &content(), &content())
.await;
}

Expand All @@ -161,7 +161,7 @@ mod tests {
.await;

let outcome = email_client
.send_email(&email(), &subject(), &content(), &content())
.send_email(email(), &subject(), &content(), &content())
.await;

assert_ok!(outcome);
Expand All @@ -179,7 +179,7 @@ mod tests {
.await;

let outcome = email_client
.send_email(&email(), &subject(), &content(), &content())
.send_email(email(), &subject(), &content(), &content())
.await;

assert_err!(outcome);
Expand All @@ -199,7 +199,7 @@ mod tests {
.await;

let outcome = email_client
.send_email(&email(), &subject(), &content(), &content())
.send_email(email(), &subject(), &content(), &content())
.await;

assert_err!(outcome);
Expand Down
2 changes: 1 addition & 1 deletion tests/api/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl TestApp {

pub async fn post_newsletters(&self, body: serde_json::Value) -> reqwest::Response {
reqwest::Client::new()
.post(&format!("{}/newsletters", &self.address))
.post(&format!("{}/newsletters", &app.address))
.json(&body)
.send()
.await
Expand Down

0 comments on commit 415e56a

Please sign in to comment.