version: fix earlier test/wording mistakes

Updates #14069

Change-Id: I1d2fd8a8ab6591af11bfb83748b94342a8ac718f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2024-11-19 10:28:26 -08:00 committed by Brad Fitzpatrick
parent d62baa45e6
commit 810da91a9e
2 changed files with 1 additions and 2 deletions

View File

@ -9,7 +9,7 @@
func init() {
// 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.
if !isValidLongWithTwoRepos(Long()) {
panic(fmt.Sprintf("malformed version.Long value %q", Long()))

View File

@ -14,7 +14,6 @@ func TestIsValidLongWithTwoRepos(t *testing.T) {
{"1.2.259-t01234abcde-g01234abcde", true}, // big patch version
{"1.2.3-t01234abcde", false}, // missing repo
{"1.2.3-g01234abcde", false}, // missing repo
{"1.2.3-g01234abcde", false}, // missing repo
{"-t01234abcde-g01234abcde", false},
{"1.2.3", false},
{"1.2.3-t01234abcde-g", false},