[#1539] object manager: Fix placement unit-test
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 3m3s
DCO action / DCO (pull_request) Successful in 3m24s
Vulncheck / Vulncheck (pull_request) Successful in 3m27s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m49s
Build / Build Components (pull_request) Successful in 4m41s
Tests and linters / gopls check (pull_request) Successful in 4m37s
Tests and linters / Staticcheck (pull_request) Successful in 5m14s
Tests and linters / Tests with -race (pull_request) Successful in 5m38s
Tests and linters / Lint (pull_request) Successful in 5m51s
Tests and linters / Tests (pull_request) Successful in 6m41s
All checks were successful
Tests and linters / Run gofumpt (pull_request) Successful in 3m3s
DCO action / DCO (pull_request) Successful in 3m24s
Vulncheck / Vulncheck (pull_request) Successful in 3m27s
Pre-commit hooks / Pre-commit (pull_request) Successful in 3m49s
Build / Build Components (pull_request) Successful in 4m41s
Tests and linters / gopls check (pull_request) Successful in 4m37s
Tests and linters / Staticcheck (pull_request) Successful in 5m14s
Tests and linters / Tests with -race (pull_request) Successful in 5m38s
Tests and linters / Lint (pull_request) Successful in 5m51s
Tests and linters / Tests (pull_request) Successful in 6m41s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
b8c3a6e53e
commit
dd9eabfcdd
1 changed files with 4 additions and 1 deletions
|
@ -85,7 +85,10 @@ func TestContainerNodesCache(t *testing.T) {
|
|||
})
|
||||
t.Run("the error is propagated", func(t *testing.T) {
|
||||
var pp netmapSDK.PlacementPolicy
|
||||
require.NoError(t, pp.DecodeString("REP 1 SELECT 1 FROM X FILTER ATTR EQ 42 AS X"))
|
||||
r := netmapSDK.ReplicaDescriptor{}
|
||||
r.SetNumberOfObjects(1)
|
||||
r.SetSelectorName("Missing")
|
||||
pp.AddReplicas(r)
|
||||
|
||||
c := placement.NewContainerNodesCache(size)
|
||||
_, err := c.ContainerNodes(nm(1, nodes[0:1]), cidtest.ID(), pp)
|
||||
|
|
Loading…
Add table
Reference in a new issue