Skip to content

Commit

Permalink
tests: fix sporadic container test failure
Browse files Browse the repository at this point in the history
Sometimes 10 is exactly the value, so changing it doesn't make the ID different:

              	Error Trace:	/home/runner/go/pkg/mod/github.com/nspcc-dev/[email protected]/pkg/neotest/basic.go:218
        	            				/home/runner/go/pkg/mod/github.com/nspcc-dev/[email protected]/pkg/neotest/client.go:108
        	            				/home/runner/work/neofs-contract/neofs-contract/tests/container_test.go:237
        	Error:      	Not equal:
        	            	expected: 0x1
        	            	actual  : 0x2
        	Test:       	TestContainerPut/standard_deploy/with_nice_names/register_in_advance
        	Messages:   	at instruction 2149 (THROW): unhandled exception: "container was previously deleted"

Signed-off-by: Roman Khimov <[email protected]>
  • Loading branch information
roman-khimov committed Jul 30, 2024
1 parent 6dfd53b commit e5d3659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func TestContainerPut(t *testing.T) {
cNNS.Invoke(t, stackitem.Null{}, "resolve", "mycnt."+containerDomain, int64(recordtype.TXT))

t.Run("register in advance", func(t *testing.T) {
cnt.value[len(cnt.value)-1] = 10
cnt.value[len(cnt.value)-1]++
cnt.id = sha256.Sum256(cnt.value)

cNNS.Invoke(t, stackitem.Null{}, "registerTLD",
Expand Down

0 comments on commit e5d3659

Please sign in to comment.