Skip to content

Commit

Permalink
PMM-7 Fix devcontainer test. (#3070)
Browse files Browse the repository at this point in the history
* PMM-7 Fix devcontainer test.

* PMM-7 Fix devcontainer test.
  • Loading branch information
BupycHuk authored Jul 12, 2024
1 parent ae08cd1 commit 8812d64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/managed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
- name: Update binaries
run: docker exec -i pmm-server make run-managed-ci run-agent run-vmproxy

- name: Refresh yum cache for tests
run: docker exec -i pmm-server yum --verbose info updates pmm-managed || echo '1'

- name: Run tests
run: docker exec -i pmm-server make -C managed test-cover

Expand Down
3 changes: 3 additions & 0 deletions managed/services/supervisord/devcontainer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ func TestDevContainer(t *testing.T) {

res, resT := checker.checkResult(ctx)

require.NotNil(t, res)
require.NotNil(t, res.Installed)

assert.True(t, strings.HasPrefix(res.Installed.Version, "2."))
assert.WithinDuration(t, time.Now(), resT, time.Second)
installedFullVersion, _ := normalizeFullversion(&res.Installed)
Expand Down

0 comments on commit 8812d64

Please sign in to comment.