Skip to content

Commit

Permalink
testsuite: fix swap test failure
Browse files Browse the repository at this point in the history
I forgot to change this line to the new floating-
point format.

Fixes #178
  • Loading branch information
rfjakob committed Mar 25, 2020
1 parent 245e467 commit 137a6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func TestCli(t *testing.T) {
if swapTotal > 0 {
// Tests that cannot work when there is no swap enabled
tc := []cliTestCase{
{args: []string{"-S", swap2percent}, code: -1, stderrContains: " 2 %", stdoutContains: memReport},
{args: []string{"-S", swap2percent}, code: -1, stderrContains: " 2.00%", stdoutContains: memReport},
// Use both -s/-S
{args: []string{"-s", "10", "-S", swap2percent}, code: -1, stderrContains: "swap <= 1.00%", stdoutContains: memReport},
}
Expand Down

0 comments on commit 137a6e4

Please sign in to comment.