Skip to content

Commit 704442c

Browse files
committed
Remove the extra wind river test
I added this and didn't realize we just used a different name. No need for both of the tests. Signed-off-by: Tim Smith <tsmith84@gmail.com>
1 parent 779ff93 commit 704442c

File tree

2 files changed

+4
-32
lines changed

2 files changed

+4
-32
lines changed

providers/os/detector/detector_platform_test.go

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,6 @@ func TestPoposDetector(t *testing.T) {
322322
assert.Equal(t, []string{"debian", "linux", "unix", "os"}, di.Family)
323323
}
324324

325-
func TestWindriver7Detector(t *testing.T) {
326-
di, err := detectPlatformFromMock("./testdata/detect-windriver7.toml")
327-
assert.Nil(t, err, "was able to create the provider")
328-
329-
assert.Equal(t, "wrlinux", di.Name, "os name should be identified")
330-
assert.Equal(t, "Wind River Linux 7.0.0.2", di.Title, "os title should be identified")
331-
assert.Equal(t, "7.0.0.2", di.Version, "os version should be identified")
332-
assert.Equal(t, "x86_64", di.Arch, "os arch should be identified")
333-
assert.Equal(t, []string{"linux", "unix", "os"}, di.Family)
334-
}
335-
336325
func TestOpenWrtDetector(t *testing.T) {
337326
di, err := detectPlatformFromMock("./testdata/detect-openwrt.toml")
338327
assert.Nil(t, err, "was able to create the provider")
@@ -1134,13 +1123,13 @@ func TestKDENeonDetector(t *testing.T) {
11341123
assert.Equal(t, []string{"debian", "linux", "unix", "os"}, di.Family)
11351124
}
11361125

1137-
func TestWrlinuxDetector(t *testing.T) {
1138-
di, err := detectPlatformFromMock("./testdata/detect-wrlinux.toml")
1126+
func TestWindriver7Detector(t *testing.T) {
1127+
di, err := detectPlatformFromMock("./testdata/detect-windriver7.toml")
11391128
assert.Nil(t, err, "was able to create the provider")
11401129

11411130
assert.Equal(t, "wrlinux", di.Name, "os name should be identified")
1142-
assert.Equal(t, "Wind River Linux 6.0.0.25", di.Title, "os title should be identified")
1143-
assert.Equal(t, "6.0.0.25", di.Version, "os version should be identified")
1131+
assert.Equal(t, "Wind River Linux 7.0.0.2", di.Title, "os title should be identified")
1132+
assert.Equal(t, "7.0.0.2", di.Version, "os version should be identified")
11441133
assert.Equal(t, "x86_64", di.Arch, "os arch should be identified")
11451134
assert.Equal(t, []string{"linux", "unix", "os"}, di.Family)
11461135
}

providers/os/detector/testdata/detect-wrlinux.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)