Add CPU info in the check update user-agent (#16447)

This commit is contained in:
Anis Elleuch
2023-01-23 17:07:55 +01:00
committed by GitHub
parent 31b0decd46
commit f37a5b6dae
2 changed files with 14 additions and 1 deletions

View File

@@ -179,7 +179,7 @@ func TestUserAgent(t *testing.T) {
if IsDocker() {
expectedStr = strings.ReplaceAll(expectedStr, "; source", "; docker; source")
}
if str != expectedStr {
if !strings.Contains(str, expectedStr) {
t.Errorf("Test %d: expected: %s, got: %s", i+1, expectedStr, str)
}
globalIsCICD = sci