From 9353a1b0a743dfc47a6b43923960384e5a540327 Mon Sep 17 00:00:00 2001 From: scorpioborn <97235353+scorpioborn@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:42:44 +0300 Subject: [PATCH] test: rearange e2e test dirs --- tests/{ => e2e}/reward/cli_test.go | 8 +++++--- tests/{ => e2e}/reward/grpc.go | 0 tests/{ => e2e}/reward/suite.go | 2 +- tests/{ => e2e}/sdk/balance.go | 0 4 files changed, 6 insertions(+), 4 deletions(-) rename tests/{ => e2e}/reward/cli_test.go (63%) rename tests/{ => e2e}/reward/grpc.go (100%) rename tests/{ => e2e}/reward/suite.go (99%) rename tests/{ => e2e}/sdk/balance.go (100%) diff --git a/tests/reward/cli_test.go b/tests/e2e/reward/cli_test.go similarity index 63% rename from tests/reward/cli_test.go rename to tests/e2e/reward/cli_test.go index 497bbde6..06d65961 100644 --- a/tests/reward/cli_test.go +++ b/tests/e2e/reward/cli_test.go @@ -1,14 +1,16 @@ -package client +package client_test import ( "testing" - "github.com/sge-network/sge/testutil/network" "github.com/stretchr/testify/suite" + + client "github.com/sge-network/sge/tests/e2e/reward" + "github.com/sge-network/sge/testutil/network" ) func TestE2ETestSuite(t *testing.T) { cfg := network.DefaultConfig() cfg.NumValidators = 1 - suite.Run(t, NewE2ETestSuite(cfg)) + suite.Run(t, client.NewE2ETestSuite(cfg)) } diff --git a/tests/reward/grpc.go b/tests/e2e/reward/grpc.go similarity index 100% rename from tests/reward/grpc.go rename to tests/e2e/reward/grpc.go diff --git a/tests/reward/suite.go b/tests/e2e/reward/suite.go similarity index 99% rename from tests/reward/suite.go rename to tests/e2e/reward/suite.go index ae2c1cf4..31057b0c 100644 --- a/tests/reward/suite.go +++ b/tests/e2e/reward/suite.go @@ -14,7 +14,7 @@ import ( "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - sdkcli "github.com/sge-network/sge/tests/sdk" + sdkcli "github.com/sge-network/sge/tests/e2e/sdk" "github.com/sge-network/sge/testutil/network" "github.com/sge-network/sge/testutil/simapp" sgetypes "github.com/sge-network/sge/types" diff --git a/tests/sdk/balance.go b/tests/e2e/sdk/balance.go similarity index 100% rename from tests/sdk/balance.go rename to tests/e2e/sdk/balance.go