Merge pull request #263977 from JulienMalka/fix-netdata-test

authored by

Ryan Lahfa and committed by
GitHub
72bd71a4 245bad83

+2 -2
+2 -2
nixos/tests/netdata.nix
··· 30 30 # check if netdata can read disk ops for root owned processes. 31 31 # if > 0, successful. verifies both netdata working and 32 32 # apps.plugin has elevated capabilities. 33 - url = "http://localhost:19999/api/v1/data\?chart=users.pwrites" 34 - filter = '[.data[range(10)][.labels | indices("root")[0]]] | add | . > 0' 33 + url = "http://localhost:19999/api/v1/data\?chart=user.root_disk_physical_io" 34 + filter = '[.data[range(10)][2]] | add | . < 0' 35 35 cmd = f"curl -s {url} | jq -e '{filter}'" 36 36 netdata.wait_until_succeeds(cmd) 37 37