Skip to content

Commit

Permalink
add tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Mar 24, 2023
1 parent 5132902 commit 6386b6f
Show file tree
Hide file tree
Showing 5 changed files with 298 additions and 107 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ warp = "0.3"
zstd = { workspace = true }

[dev-dependencies]
json_pretty = "0.1.2"
sql = { workspace = true, features = ["test"] }
4 changes: 2 additions & 2 deletions server/src/handlers/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ pub enum Error {
},

#[snafu(display("InfluxDb handler failed, msg:{}, source:{}", msg, source))]
InfluxDbHandler { msg: String, source: GenericError },
InfluxDbHandlerWithCause { msg: String, source: GenericError },

#[snafu(display("InfluxDb handler failed, msg:{}.\nBacktrace:\n{}", msg, backtrace))]
InfluxDbHandlerInternal { msg: String, backtrace: Backtrace },
InfluxDbHandlerNoCause { msg: String, backtrace: Backtrace },
}

define_result!(Error);
Expand Down
Loading

0 comments on commit 6386b6f

Please sign in to comment.