diff options
author | Daniel Milde <daniel@milde.cz> | 2021-02-05 13:56:18 +0100 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2021-02-05 13:58:09 +0100 |
commit | 2de557fa19665c51ab9ec2c905d5319adbd1939c (patch) | |
tree | 0b127b361e9d123e78ba03a10f74eda27f3088a4 | |
parent | 7ce65bd5d34bf77b76bacb93394372eb2d1ebe11 (diff) |
device tests fixed for chroot environmentsv4.4.1
-rw-r--r-- | cmd/run_test.go | 2 | ||||
-rw-r--r-- | device/dev_test.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/run_test.go b/cmd/run_test.go index 20a7acd..2c97ada 100644 --- a/cmd/run_test.go +++ b/cmd/run_test.go @@ -45,7 +45,7 @@ func TestListDevices(t *testing.T) { Run(&RunFlags{LogFile: "/dev/null", ShowDisks: true}, nil, false, buff, true) - assert.Contains(t, buff.String(), "dev") + assert.Contains(t, buff.String(), "Device") } func TestListDevicesWithGui(t *testing.T) { diff --git a/device/dev_test.go b/device/dev_test.go index e326e33..9a7fa05 100644 --- a/device/dev_test.go +++ b/device/dev_test.go @@ -10,7 +10,7 @@ import ( func TestGetDevicesInfo(t *testing.T) { getter := LinuxDevicesInfoGetter{MountsPath: "/proc/mounts"} devices, _ := getter.GetDevicesInfo() - assert.NotEmpty(t, devices) + assert.IsType(t, []*Device{}, devices) } func TestGetDevicesInfoFail(t *testing.T) { |