Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Sep 4, 2024
1 parent 071e83a commit 422a8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
permissions:
contents: write
pull-requests: write
deployments: write
jobs:
benchmark:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -79,7 +80,7 @@ jobs:
alert-threshold: "150%"

- name: Publish Benchmark Results to GitHub Pages
uses: benchmark-action/github-action-benchmark@v1.20.3
uses: benchmark-action/github-action-benchmark@v1
if: ${{ github.ref_name == 'master' }}
with:
tool: 'go'
Expand All @@ -92,7 +93,7 @@ jobs:
# Save the data to external file (GitHub Pages)
save-data-file: true
alert-threshold: "150%"
auto-push: false
auto-push: true

- name: Update Benchmark Results cache
uses: actions/cache/save@v4
Expand Down
2 changes: 1 addition & 1 deletion foundation/application_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func (s *ApplicationTestSuite) TestMakeSchedule() {
func (s *ApplicationTestSuite) TestMakeSession() {
mockConfig := &configmocks.Config{}
mockConfig.On("GetInt", "session.lifetime").Return(120).Once()
mockConfig.On("GetInt", "session.gc_interval").Return(30).Once()
mockConfig.On("GetInt", "session.gc_interval", 30).Return(30).Once()
mockConfig.On("GetString", "session.files").Return("storage/framework/sessions").Once()

s.app.Singleton(frameworkconfig.Binding, func(app foundation.Application) (any, error) {
Expand Down

0 comments on commit 422a8b4

Please sign in to comment.