Skip to content

Commit

Permalink
Merge pull request #614 from SchSeba/fix_device_spec_rdma_2
Browse files Browse the repository at this point in the history
Fix unit tests
  • Loading branch information
e0ne authored Dec 11, 2024
2 parents 2b3ddae + 8f09dbe commit 12510dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/netdevice/netResourcePool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ var _ = Describe("NetResourcePool", func() {
}
return nil
})
nadutils.On("CleanDeviceInfoFile", "fakeOrg.io/fakeResource", "fake1").Return(nil)
nadutils.On("CleanDeviceInfoFile", "fakeOrg.io/fakeResource", "fake2").Return(nil)
rp := netdevice.NewNetResourcePool(nadutils, rc, pcis)
err := rp.StoreDeviceInfoFile("fakeOrg.io", []string{"fake1", "fake2"})
nadutils.AssertExpectations(t)
Expand Down Expand Up @@ -216,6 +218,9 @@ var _ = Describe("NetResourcePool", func() {
}
return nil
})
nadutils.On("CleanDeviceInfoFile", "fakeOrg.io/fakeResource", "fake1").Return(nil)
nadutils.On("CleanDeviceInfoFile", "fakeOrg.io/fakeResource", "fake2").Return(nil)

rp := netdevice.NewNetResourcePool(nadutils, rc, pcis)
err := rp.StoreDeviceInfoFile("fakeOrg.io", []string{"fake1", "fake2"})
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit 12510dd

Please sign in to comment.