Skip to content

Commit febdeab

Browse files
committed
chore: change CIRCLECI environment variable to CI.
1 parent a09263d commit febdeab

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cpu/cpu_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ func testCPUPercent(t *testing.T, percpu bool) {
138138
if err != nil {
139139
t.Errorf("error %v", err)
140140
}
141-
// Skip CircleCI which CPU num is different
142-
if os.Getenv("CIRCLECI") != "true" {
141+
// Skip CI which CPU num is different
142+
if os.Getenv("CI") != "true" {
143143
if (percpu && len(v) != numcpu) || (!percpu && len(v) != 1) {
144144
t.Fatalf("wrong number of entries from CPUPercent: %v", v)
145145
}
@@ -172,8 +172,8 @@ func testCPUPercentLastUsed(t *testing.T, percpu bool) {
172172
if err != nil {
173173
t.Errorf("error %v", err)
174174
}
175-
// Skip CircleCI which CPU num is different
176-
if os.Getenv("CIRCLECI") != "true" {
175+
// Skip CI which CPU num is different
176+
if os.Getenv("CI") != "true" {
177177
if (percpu && len(v) != numcpu) || (!percpu && len(v) != 1) {
178178
t.Fatalf("wrong number of entries from CPUPercent: %v", v)
179179
}

host/host_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func TestHostInfo(t *testing.T) {
3333
}
3434

3535
func TestUptime(t *testing.T) {
36-
if os.Getenv("CIRCLECI") == "true" {
36+
if os.Getenv("CI") == "true" {
3737
t.Skip("Skip CI")
3838
}
3939

@@ -48,7 +48,7 @@ func TestUptime(t *testing.T) {
4848
}
4949

5050
func TestBoot_time(t *testing.T) {
51-
if os.Getenv("CIRCLECI") == "true" {
51+
if os.Getenv("CI") == "true" {
5252
t.Skip("Skip CI")
5353
}
5454
v, err := BootTime()

process/process_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func Test_Process_CpuPercentLoop(t *testing.T) {
502502
}
503503

504504
func Test_Process_CreateTime(t *testing.T) {
505-
if os.Getenv("CIRCLECI") == "true" {
505+
if os.Getenv("CI") == "true" {
506506
t.Skip("Skip CI")
507507
}
508508

0 commit comments

Comments
 (0)