Skip to content

Commit

Permalink
Skip TestReplaceAttr without faketime (#84)
Browse files Browse the repository at this point in the history
TestReplaceAttr fails without faketime.
  • Loading branch information
database64128 authored Dec 10, 2024
1 parent e3abebc commit de437d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,10 @@ func replace(new slog.Value, keys ...string) func([]string, slog.Attr) slog.Attr
}

func TestReplaceAttr(t *testing.T) {
if !faketime.Equal(time.Now()) {
t.Skip(`skipping test; run with "-tags=faketime"`)
}

tests := [][]any{
{},
{"key", "val"},
Expand Down

0 comments on commit de437d0

Please sign in to comment.