Skip to content

Commit

Permalink
koordlet: fix lscpu for arm ut (#1794)
Browse files Browse the repository at this point in the history
Signed-off-by: 佑祎 <zzw261520@alibaba-inc.com>
  • Loading branch information
zwzhang0107 committed Dec 26, 2023
1 parent 265ff9e commit a404e7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/koordlet/util/cpuinfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE
args: args{
lsCPUStr: `
CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE
0 0 0 0 - yes
0 0 0 0 no cacheinfo yes
1 0 0 0 no cacheinfo yes
`},
want: nil,
Expand Down Expand Up @@ -387,7 +387,7 @@ CPU NODE SOCKET CORE L1d:L1i:L2:L3 ONLINE
t.Run(tt.name, func(t *testing.T) {
got, err := getProcessorInfos(tt.args.lsCPUStr)
if (err != nil) != tt.wantErr {
t.Errorf("getProcessorInfos wantErr %v but got err %s", tt.wantErr, err)
t.Errorf("getProcessorInfos wantErr %v but got err %v", tt.wantErr, err)
}
if !reflect.DeepEqual(tt.want, got) {
t.Errorf("getProcessorInfos want %v but got %v", tt.want, got)
Expand Down

0 comments on commit a404e7f

Please sign in to comment.