mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
version: fix earlier test/wording mistakes
Updates #14069 Change-Id: I1d2fd8a8ab6591af11bfb83748b94342a8ac718f Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
d62baa45e6
commit
810da91a9e
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// For official Android builds using the tailscale_go toolchain,
|
// For official Android builds using the tailscale_go toolchain,
|
||||||
// panic if the builder is screwed up we fail to stamp a valid
|
// panic if the builder is screwed up and we fail to stamp a valid
|
||||||
// version string.
|
// version string.
|
||||||
if !isValidLongWithTwoRepos(Long()) {
|
if !isValidLongWithTwoRepos(Long()) {
|
||||||
panic(fmt.Sprintf("malformed version.Long value %q", Long()))
|
panic(fmt.Sprintf("malformed version.Long value %q", Long()))
|
||||||
|
@ -14,7 +14,6 @@ func TestIsValidLongWithTwoRepos(t *testing.T) {
|
|||||||
{"1.2.259-t01234abcde-g01234abcde", true}, // big patch version
|
{"1.2.259-t01234abcde-g01234abcde", true}, // big patch version
|
||||||
{"1.2.3-t01234abcde", false}, // missing repo
|
{"1.2.3-t01234abcde", false}, // missing repo
|
||||||
{"1.2.3-g01234abcde", false}, // missing repo
|
{"1.2.3-g01234abcde", false}, // missing repo
|
||||||
{"1.2.3-g01234abcde", false}, // missing repo
|
|
||||||
{"-t01234abcde-g01234abcde", false},
|
{"-t01234abcde-g01234abcde", false},
|
||||||
{"1.2.3", false},
|
{"1.2.3", false},
|
||||||
{"1.2.3-t01234abcde-g", false},
|
{"1.2.3-t01234abcde-g", false},
|
||||||
|
Loading…
Reference in New Issue
Block a user