Skip to content

Commit

Permalink
test: move tgacc to separate package
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 9, 2024
1 parent ce3c6a6 commit 343fbd4
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 2,571 deletions.
6 changes: 3 additions & 3 deletions telegram/internal/e2etest/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

"github.com/gotd/td/telegram"
"github.com/gotd/td/telegram/dcs"
"github.com/gotd/td/testutil"
"github.com/gotd/td/tgacc"
)

// Suite is struct which contains external E2E test parameters.
Expand All @@ -22,7 +22,7 @@ type Suite struct {
appHash string
dc int
logger *zap.Logger
manager *testutil.TestAccountManager
manager *tgacc.TestAccountManager
closers []func() error

rand io.Reader
Expand All @@ -45,7 +45,7 @@ func (s *Suite) Close() error {
// NewSuite creates new Suite.
func NewSuite(t *testing.T, config TestOptions) *Suite {
config.setDefaults()
manager, err := testutil.NewTestAccountManager()
manager, err := tgacc.NewTestAccountManager()
require.NoError(t, err)
s := &Suite{
TB: t,
Expand Down
3 changes: 0 additions & 3 deletions testutil/generate.go

This file was deleted.

143 changes: 0 additions & 143 deletions testutil/tgacc/oas_cfg_gen.go

This file was deleted.

Loading

0 comments on commit 343fbd4

Please sign in to comment.