Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libct/intelrdt: fix unit test #2940

Merged
merged 1 commit into from
May 20, 2021

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]>
@haircommander
Copy link
Contributor

LGTM

@mrunalp
Copy link
Contributor

mrunalp commented May 14, 2021

@AkihiroSuda ptal

@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