Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Pająk <[email protected]>
  • Loading branch information
dashpole and pellared authored Oct 18, 2024
1 parent 8e2e7ca commit ed055e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ func TestStartTimeFromContext(t *testing.T) {
ctx := context.Background()
startTime := StartTimeFromContext(ctx)
assert.True(t, startTime.IsZero())

now := time.Now()
ctx = ContextWithStartTime(ctx, now)
startTime = StartTimeFromContext(ctx)
assert.False(t, startTime.IsZero())
assert.True(t, startTime.Equal(now))
}

0 comments on commit ed055e8

Please sign in to comment.