Skip to content

Commit b220841

Browse files
authored
fix: randomize creation token for tests (#40)
Description of changes: change creationToken generator By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 419b5b2 commit b220841

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/resource/file_system/hooks.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ import (
3333
// getIdempotencyToken returns a unique string to be used in certain API calls
3434
// to ensure no replay of the call.
3535
func getIdempotencyToken() string {
36-
t := time.Now().UTC()
37-
return t.Format("20060102150405000000")
36+
return fmt.Sprintf("%d", time.Now().UTC().Nanosecond())
3837
}
3938

4039
var (

0 commit comments

Comments
 (0)