We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4819e97 commit f17c871Copy full SHA for f17c871
pkg/pci/pci_linux_test.go
@@ -17,6 +17,7 @@ import (
17
"github.com/jaypipes/ghw/pkg/marshal"
18
"github.com/jaypipes/ghw/pkg/option"
19
"github.com/jaypipes/ghw/pkg/pci"
20
+ "github.com/jaypipes/ghw/pkg/util"
21
22
"github.com/jaypipes/ghw/testdata"
23
)
@@ -228,7 +229,7 @@ func TestPCIModaliasWithUpperCaseClassID(t *testing.T) {
228
229
if dev == nil {
230
t.Fatalf("Failed to parse valid modalias")
231
}
- if dev.Class.Name == "unknown" {
232
+ if dev.Class.Name == util.UNKNOWN {
233
t.Fatalf("Failed to lookup class name")
234
235
0 commit comments