From 137a6e43ac80b57b46426346b79a0dffee173c82 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 25 Mar 2020 21:33:08 +0100 Subject: [PATCH] testsuite: fix swap test failure I forgot to change this line to the new floating- point format. Fixes https://github.com/rfjakob/earlyoom/issues/178 --- testsuite_cli_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite_cli_test.go b/testsuite_cli_test.go index 5bbb346..34d056d 100644 --- a/testsuite_cli_test.go +++ b/testsuite_cli_test.go @@ -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}, }