Skip to content

Commit

Permalink
fix clock skew e2e-test
Browse files Browse the repository at this point in the history
  • Loading branch information
defbin committed Oct 5, 2023
1 parent 9f9a01b commit 1aaadcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions e2e-tests/docker/pbm.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ WORKDIR /build
RUN mkdir -p /data/db

COPY --from=mongo_image /bin/mongod /bin/

RUN dnf update && dnf install make golang tc
RUN dnf install epel-release && dnf update && dnf install make golang tc libfaketime

FROM base-build
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pkg/pbm/clock_skew.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ClockSkew(rsName, ts, dockerHost string) error {

envs := append([]string{}, containerOld.Config.Env...)
envs = append(envs,
`LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1`,
`LD_PRELOAD=/lib64/faketime/libfaketime.so.1`,
`FAKETIME=`+ts,
)

Expand Down

0 comments on commit 1aaadcf

Please sign in to comment.