Files
Bogdan DrutuandGitHub db90785fe3 [chore] Move memorylimiter dependencies under one module (#11419)
This PR only moves all the internal code used by internal/memorylimiter
under the same directory, next PR will extract that in a different
module to limit dependencies.

Signed-off-by: Bogdan Drutu <[email protected]>
2024-10-12 11:15:06 -07:00

20 lines
348 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
//go:build linux
package iruntime
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestTotalMemory(t *testing.T) {
totalMemory, err := TotalMemory()
require.NoError(t, err)
assert.Positive(t, totalMemory)
}