Skip to content

Mock selenium - #2

Merged
andrskom merged 5 commits into
masterfrom
mock_selenium
Jun 8, 2017
Merged

andrskom merged 5 commits into
masterfrom
mock_selenium

Conversation

@podtserkovskiy

Copy link
Copy Markdown
Member
  • мок селениума
  • выбор реализации сторожа из кончика
  • фиксы дедлоков
  • улучшение описания ошибок
  • добавление индексов

Mikhail Podtserkovskiy added 4 commits June 7, 2017 18:37
- выбор реализации сторожа из кончика
- фиксы дедлоков
- улучшение описания ошибок
Comment thread invoke.go
@@ -0,0 +1,44 @@
package main

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше написать интерфейс инициализации и реализовать фабрику, мне кажется так будет правильнее. У тебя же есть DAL, так вот, от него и пляши.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай так и сделаем

Comment thread invoke.go Outdated
"github.com/rubenv/sql-migrate"
)

func invokeStorage(config config.Config) (storage pool.StorageInterface, err error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут интерфейс наверно не совсем правильный.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ты о том что должен возвращаться StorageFactoryInterface? или я не правильно понял смысл коммента?

Comment thread testing/node/mock.go
@@ -0,0 +1,265 @@
package main

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Перенеси в папочку utils и не забывай про комментарии.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ок

@andrskom
andrskom merged commit 0e3522c into master Jun 8, 2017
@andrskom
andrskom deleted the mock_selenium branch June 8, 2017 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants