Skip to content

Commit

Permalink
sysutils: rework test
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Jun 15, 2020
1 parent 0208314 commit 458bd0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/util/sysutils/sysutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ func TestParseNicInfo(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
got := ParseNicInfo(tt.args.lines)
gotJson := jsonutils.Marshal(got).String()
wantJson := jsonutils.Marshal(tt.want).String()
if gotJson != wantJson {
t.Errorf("ParseNicInfo() = %s, want %s", gotJson, wantJson)
gotJson := jsonutils.Marshal(got)
wantJson := jsonutils.Marshal(tt.want)
if !gotJson.Equals(wantJson) {
t.Errorf("got:\n%s\nwant:\n%s", gotJson, wantJson)
}
})
}
Expand Down

0 comments on commit 458bd0c

Please sign in to comment.