Skip to content

Conversation

@kolyshkin
Copy link
Contributor

@kolyshkin kolyshkin commented May 5, 2021

  1. These tests can't be run in parallel since they do check
    a global variable (mbaScEnabled).

  2. findIntelRdtMountpointDir() relies on mbaScEnabled to be initially
    set to the default value (false) and this the test fails if run
    more than once:

go test -count 2
...
intelrdt_test.go:243: expected mbaScEnabled=false, got true
--- FAIL: TestFindIntelRdtMountpointDir/Valid_mountinfo_with_MBA_Software_Controller_disabled (0.00s)

Fixes: 2c70d23 (PR #2606)

1. These tests can't be run in parallel since they do check
   a global variable (mbaScEnabled).

2. findIntelRdtMountpointDir() relies on mbaScEnabled to be initially
   set to the default value (false) and this the test fails if run
   more than once:

> go test -count 2
> ...
> intelrdt_test.go:243: expected mbaScEnabled=false, got true
>    --- FAIL: TestFindIntelRdtMountpointDir/Valid_mountinfo_with_MBA_Software_Controller_disabled (0.00s)

Fixes: 2c70d23
Signed-off-by: Kir Kolyshkin <[email protected]>
@kolyshkin kolyshkin force-pushed the intelrdt-unit-test branch from 3e10439 to e1d842c Compare May 5, 2021 21:08
@haircommander
Copy link
Contributor

LGTM

@mrunalp
Copy link
Contributor

mrunalp commented May 14, 2021

@AkihiroSuda ptal

@kolyshkin kolyshkin requested a review from AkihiroSuda May 19, 2021 19:18
@AkihiroSuda AkihiroSuda merged commit 4d87573 into opencontainers:master May 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants