Skip to content

Commit 6c56cef

Browse files
author
Oleg Sklyar
committed
Removing copyright sign and adjusting flaky test
1 parent fe80b73 commit 6c56cef

File tree

5 files changed

+9
-12
lines changed

5 files changed

+9
-12
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2016, Ventu.io, Oleg Sklyar, contributors
1+
Copyright (c) 2016, Ventu.io, Oleg Sklyar, contributors
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
44
associated documentation files (the "Software"), to deal in the Software without restriction,

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@ implement an algorithm with e.g. more randomness, but with longer Ids and shorte
102102

103103
## License
104104

105-
Copyright © 2016 Ventu.io, Oleg Sklyar, contributors.
105+
Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors.
106106

107107
Distributed under a MIT style license found in the [LICENSE][license] file.
108108

109-
**[Original algorithm][nodeshortid]:** Copyright © 2015 Dylan Greene, contributors. The same MIT
109+
**[Original algorithm][nodeshortid]:** Copyright (c) 2015 Dylan Greene, contributors. The same MIT
110110
license applies. Many thanks to Dylan for putting together the original node.js library, which
111111
inspired this "port":
112112

113-
**Seed computation:** based on The Central Randomizer 1.3. Copyright © 1997 Paul Houle (houle@msc.cornell.edu)
113+
**Seed computation:** based on The Central Randomizer 1.3. Copyright (c) 1997 Paul Houle (houle@msc.cornell.edu)
114114

115115

116116
[go]: https://golang.org

shortid.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
1+
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
22
// The use of this source code is governed by a MIT style license found in the LICENSE file
33

44
// Original algorithm:
5-
// Copyright © 2015 Dylan Greene, contributors: https://github.com/dylang/shortid.
5+
// Copyright (c) 2015 Dylan Greene, contributors: https://github.com/dylang/shortid.
66
// MIT-license as found in the LICENSE file.
77

88
// Seed computation: based on The Central Randomizer 1.3
9-
// Copyright © 1997 Paul Houle (houle@msc.cornell.edu)
9+
// Copyright (c) 1997 Paul Houle (houle@msc.cornell.edu)
1010

1111
// Package shortid enables the generation of short, unique, non-sequential and by default URL friendly
1212
// Ids. The package is heavily inspired by the node.js https://github.com/dylang/shortid library.

shortid_integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
1+
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
22
// The use of this source code is governed by a MIT style license found in the LICENSE file
33

44
package shortid_test

shortid_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2016 Ventu.io, Oleg Sklyar, contributors
1+
// Copyright (c) 2016 Ventu.io, Oleg Sklyar, contributors
22
// The use of this source code is governed by a MIT style license found in the LICENSE file
33

44
package shortid_test
@@ -136,9 +136,6 @@ func TestShortid_onMustGenerate_success(t *testing.T) {
136136
if id := sid.MustGenerate(); len(id) != 9 {
137137
t.Errorf("expected id of length 9, found %v", id)
138138
}
139-
if id := sid.MustGenerate(); len(id) != 10 {
140-
t.Errorf("expected id of length 10, found %v", id)
141-
}
142139
time.Sleep(2 * time.Millisecond)
143140
if id := sid.MustGenerate(); len(id) != 9 {
144141
t.Errorf("expected id of length 9, found %v", id)

0 commit comments

Comments
 (0)