Skip to content

Commit

Permalink
tests: Remove force epoch ticking
Browse files Browse the repository at this point in the history
closes #94

Signed-off-by: Evgenii Baidakov <[email protected]>
  • Loading branch information
smallhive committed Sep 26, 2023
1 parent caa1d39 commit f981767
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions cmd/neofs-rest-gw/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ type dockerImage struct {
version string
}

var (
tickEpoch = []string{
"neo-go", "contract", "invokefunction", "--wallet-config", "/config/node-config.yaml",
"-a", "NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP", "--force", "-r", "http://localhost:30333",
"707516630852f4179af43366917a36b9a78b93a5", "newEpoch", "int:10",
"--", "NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP:Global",
}
)

func TestIntegration(t *testing.T) {
ctx := context.Background()
key, err := keys.NewPrivateKeyFromHex(devenvPrivateKey)
Expand All @@ -99,7 +90,8 @@ func runLocalTests(ctx context.Context, t *testing.T, key *keys.PrivateKey) {
func runTestInContainer(rootCtx context.Context, t *testing.T, key *keys.PrivateKey) {
versions := []dockerImage{
{image: "nspccdev/neofs-aio", version: "0.37.0"},
{image: "nspccdev/neofs-aio", version: "latest"},
{image: "nspccdev/neofs-aio", version: "0.38.0"},
{image: "nspccdev/neofs-aio", version: "0.38.1"},
}

for _, version := range versions {
Expand Down Expand Up @@ -173,15 +165,6 @@ func createDockerContainer(ctx context.Context, t *testing.T, image, version str
})
require.NoError(t, err)

// Have to wait this time. Required for new tick event processing.
// Should be removed after fix epochs in AIO start.
<-time.After(3 * time.Second)

_, _, err = aioC.Exec(ctx, tickEpoch)
require.NoError(t, err)

<-time.After(3 * time.Second)

return aioC
}

Expand Down

0 comments on commit f981767

Please sign in to comment.