Skip to content

Commit

Permalink
generate uuid V7 base on provided time
Browse files Browse the repository at this point in the history
  • Loading branch information
snaffi committed Dec 17, 2024
1 parent c55e798 commit 4caef79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -886,6 +886,8 @@ func TestVersion7FromReader(t *testing.T) {

func TestVersion7FromReaderWithTime(t *testing.T) {
myString := "8059ddhdle77cb52"
// other tests affects `lastV7time`, so we need to reset it
lastV7time = 0
timeFunc := func() time.Time {
return time.Date(1992, time.November, 5, 8, 8, 8, 8, time.UTC)
}
Expand Down

0 comments on commit 4caef79

Please sign in to comment.