Skip to content

Commit

Permalink
telemetry: wrong skip test when apple intel or linux arm (pingcap#26826)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Aug 3, 2021
1 parent 443e100 commit b780396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telemetry/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func TestPreview(t *testing.T) {
require.NoError(t, err)
require.Equal(t, trackingID, jsonParsed.Path("trackingId").Data().(string))
// Apple M1 doesn't contain cpuFlags
if runtime.GOARCH != "arm" && runtime.GOOS != "darwin" {
if !(runtime.GOARCH == "arm" && runtime.GOOS == "darwin") {
require.True(t, jsonParsed.ExistsP("hostExtra.cpuFlags"))
}
require.True(t, jsonParsed.ExistsP("hostExtra.os"))
Expand Down

0 comments on commit b780396

Please sign in to comment.