Add CPU info in the check update user-agent (#16447)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user