mirror of
https://github.com/prometheus/prometheus
synced 2026-04-20 22:41:05 +08:00
util/runtime: simplify TestFsType comment per review
Remove issue reference and trim the comment down to the assertion's intent, per @roidelapluie review. Signed-off-by: alliasgher <alliasgher123@gmail.com>
This commit is contained in:
@@ -28,9 +28,7 @@ func TestFsType(t *testing.T) {
|
||||
path, err := os.Getwd()
|
||||
require.NoError(t, err)
|
||||
|
||||
// FsType returns a named constant (e.g. EXT4_SUPER_MAGIC) for known
|
||||
// filesystems, or a lowercase-hex fallback for unknown ones. Either way
|
||||
// the result must be non-zero for a real path. See #18471.
|
||||
// A real path must yield a non-zero filesystem type.
|
||||
fsType = FsType(path)
|
||||
require.NotEqual(t, "0", fsType)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user