Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

インストールと税率の評価が同一秒で実行されテストに失敗するのを修正 #443

Merged
merged 1 commit into from Mar 11, 2021

Conversation

nanasess
Copy link
Contributor

@nanasess nanasess commented Feb 26, 2021

  • sleep 1 を追加
  • dtb_tax_rule.apply_date < CURRENT_TIMESTAMP で消費税率を取得しているため、セットアップと同一秒でテストが実行されると税率が取得できずエラーになってしまう
    • セットアップ時の dtb_tax_rule.apply_dateCURRENT_TIMESTAMP を INSERT している
  • 失敗したテスト
    スクリーンショット 2021-02-26 12 30 45
  • 税率の情報は static 変数にキャッシュされるため、後続のテストも失敗してしまう

`dtb_tax_rule.apply_date < CURRENT_TIMESTAMP` で消費税率を取得しているため、同一秒でテストが実行されると税率が取得できずエラーになってしまうのを防止
@okazy okazy added this to the 2.17.2 milestone Feb 26, 2021
@okazy okazy merged commit 239479c into EC-CUBE:master Mar 11, 2021
@okazy
Copy link
Contributor

okazy commented Mar 11, 2021

ありがとうございます!マージしました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants