Compare commits
4 commits
12f562530c
...
c6e3d714a7
Author | SHA1 | Date | |
---|---|---|---|
c6e3d714a7 | |||
c27d891b65 | |||
347b9cb4dc | |||
5d64692f31 |
2 changed files with 5 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Leveraging the pre-built Docker images with
|
# Leveraging the pre-built Docker images with
|
||||||
# cargo-chef and the Rust toolchain
|
# cargo-chef and the Rust toolchain
|
||||||
FROM git.kemitix.net/kemitix/git-next-builder:2024.07.05 AS chef
|
FROM git.kemitix.net/kemitix/git-next-builder:2024.08.04 AS chef
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM chef AS planner
|
FROM chef AS planner
|
||||||
|
@ -15,12 +15,13 @@ COPY . .
|
||||||
RUN cargo build --release --bin git-next && \
|
RUN cargo build --release --bin git-next && \
|
||||||
strip target/release/git-next
|
strip target/release/git-next
|
||||||
|
|
||||||
FROM docker.io/debian:stable-20240701-slim AS runtime
|
FROM docker.io/debian:stable-20240722-slim AS runtime
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install --no-install-recommends -y \
|
apt-get install --no-install-recommends -y \
|
||||||
git=1:2.39.2-1.1 \
|
git=1:2.39.2-1.1 \
|
||||||
libssl3=3.0.13-1~deb12u1 \
|
libssl3=3.0.13-1~deb12u1 \
|
||||||
|
libdbus-1-dev=1.14.10-1~deb12u1 \
|
||||||
ca-certificates=20230311 \
|
ca-certificates=20230311 \
|
||||||
&& \
|
&& \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
|
@ -35,6 +35,8 @@ fn when_history_has_expired_then_message_is_passed() {
|
||||||
let result = history.sendable(user_notification);
|
let result = history.sendable(user_notification);
|
||||||
let_assert!(Some(user_notification) = result);
|
let_assert!(Some(user_notification) = result);
|
||||||
|
|
||||||
|
std::thread::sleep(dur);
|
||||||
|
// twice the expiry duration to avoid things happening in the wrong order
|
||||||
std::thread::sleep(dur);
|
std::thread::sleep(dur);
|
||||||
|
|
||||||
// after dur, message has expired, so is still valid
|
// after dur, message has expired, so is still valid
|
||||||
|
|
Loading…
Reference in a new issue