forked from TrueCloudLab/frostfs-sdk-go
[#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:
parent
fe5b28e6bf
commit
a262a0038f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue