Skip to content

Commit

Permalink
java test failure; attempt sleep for 1s to let async call execute
Browse files Browse the repository at this point in the history
  • Loading branch information
safeer committed Aug 22, 2024
1 parent 94dc3eb commit 90560f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions backend/controller/cronjobs/cronjobs_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func TestCron(t *testing.T) {
in.WithLanguages("go", "java"),
in.CopyModule("cron"),
in.Deploy("cron"),
in.Wait("cron"),
in.Sleep(1000000000), //1 second
func(t testing.TB, ic in.TestContext) {
_, err := os.Stat(tmpFile)
assert.NoError(t, err)
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ require (
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/puzpuzpuz/xsync/v3 v3.4.0
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
github.com/serialx/hashring v0.0.0-20200727003509-22c0c7ab6b1b
github.com/swaggest/refl v1.3.0 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.28.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion internal/model/cron_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package model
import (
"time"

"github.com/TBD54566975/ftl/backend/schema"
"github.com/alecthomas/types/optional"

"github.com/TBD54566975/ftl/backend/schema"
)

type CronJob struct {
Expand Down

0 comments on commit 90560f7

Please sign in to comment.