Skip to content

Commit

Permalink
Test for broken time crate
Browse files Browse the repository at this point in the history
  • Loading branch information
dswd committed Mar 26, 2021
1 parent 62def2d commit d7d0694
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 81 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ FROM mcr.microsoft.com/vscode/devcontainers/rust:0-1

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends asciidoctor

RUN rm /etc/localtime && ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
3 changes: 3 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/set-timezone-action@v1.1
with:
timezoneLinux: Europe/Berlin
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
Expand Down
122 changes: 42 additions & 80 deletions Cargo.lock

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

7 changes: 6 additions & 1 deletion src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@
mod common;
mod nat;
mod payload;
mod peers;
mod peers;

#[test]
fn test_time_format() {
assert!(time::OffsetDateTime::try_now_local().is_ok());
}

0 comments on commit d7d0694

Please sign in to comment.