Skip to content

Commit 48c1d4e

Browse files
authored
Merge pull request #1821 from shirou/feat/fix_ci_skipped_test
[host][process]: fix type missmatch test.
2 parents d875090 + f26bf79 commit 48c1d4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

host/host_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func TestBootTime(t *testing.T) {
5050
common.SkipIfNotImplementedErr(t, err)
5151
require.NoError(t, err)
5252
assert.NotZerof(t, v, "Could not get boot time %v", v)
53-
assert.GreaterOrEqualf(t, v, 946652400, "Invalid Boottime, older than 2000-01-01")
53+
assert.GreaterOrEqualf(t, v, uint64(946652400), "Invalid Boottime, older than 2000-01-01")
5454
t.Logf("first boot time: %d", v)
5555

5656
v2, err := BootTime()

process/process_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func TestCreateTime(t *testing.T) {
384384
common.SkipIfNotImplementedErr(t, err)
385385
require.NoError(t, err)
386386

387-
assert.GreaterOrEqualf(t, c, 1420000000, "process created time is wrong.")
387+
assert.GreaterOrEqualf(t, c, int64(1420000000), "process created time is wrong.")
388388

389389
gotElapsed := time.Since(time.Unix(int64(c/1000), 0))
390390
maxElapsed := time.Duration(20 * time.Second)

0 commit comments

Comments
 (0)