[#343] pool: Fix Yoda condition

go-staticcheck recommends not to use Yoda conditions.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
This commit is contained in:
Ekaterina Lebedeva 2025-03-10 19:24:26 +03:00
parent fe5b28e6bf
commit a262a0038f

View file

@ -372,7 +372,7 @@ func TestUpdateNodesHealth(t *testing.T) {
changed := tc.wasHealthy != tc.willHealthy
require.Equalf(t, tc.willHealthy, cli.isHealthy(), "healthy status should be: %v", tc.willHealthy)
require.Equalf(t, changed, 1 == log.Len(), "healthy status should be changed: %v", changed)
require.Equalf(t, changed, log.Len() == 1, "healthy status should be changed: %v", changed)
})
}
}