forked from TrueCloudLab/frostfs-api-go
[#267] pkg: Fix IsSupportedVersion implementation
Current API library supports versions up to 2.4.x. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
7cb9b8f283
commit
2fcb6d9613
2 changed files with 8 additions and 13 deletions
|
@ -46,12 +46,12 @@ func TestIsSupportedVersion(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
mjr: 2,
|
||||
maxMnr: 1,
|
||||
maxMnr: sdkMnr,
|
||||
},
|
||||
} {
|
||||
v.SetMajor(item.mjr)
|
||||
|
||||
for i := uint32(0); i < item.maxMnr; i++ {
|
||||
for i := uint32(0); i <= item.maxMnr; i++ {
|
||||
v.SetMinor(i)
|
||||
|
||||
require.NoError(t, IsSupportedVersion(v))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue