off-by-v error in spelling of versions

This commit is contained in:
Seebs 2023-03-30 17:27:38 -05:00 committed by seebs
parent 9460bc9ee4
commit a5dda0cb1c

View file

@ -93,8 +93,10 @@ func TestFeaturebaseVersion(t *testing.T) {
if expectedTag != "" {
// if a tag is set, we're in a tagged pipeline, and the version
// should just be vX.Y or something similar, without a commit
// hash.
if v != expectedTag {
// hash. in that case, the tag passed to us from the environment
// will look like vX.Y, but the version reported by the version
// endpoint is just X.Y. Argh.
if v != expectedTag && ("v"+v) != expectedTag {
t.Fatalf("version %s does not match expected tag %s", v, expectedTag)
}
t.Logf("featurebase version %q matches expectations", expectedTag)