Skip to content

Commit

Permalink
enable existing tasks to be deferred
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3b4sd committed Oct 13, 2024
1 parent 2d93e20 commit 5aaee91
Show file tree
Hide file tree
Showing 14 changed files with 432 additions and 61 deletions.
16 changes: 2 additions & 14 deletions conformance/delete_cron_redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,14 @@ import (
"github.com/xh3b4sd/rescue/task"
)

func Test_Engine_Delete_Cron(t *testing.T) {
func Test_Engine_Delete_Cron_Aevery(t *testing.T) {
var err error

var red redigo.Interface
{
red = redigo.Default()
}

{
err = red.Purge()
if err != nil {
t.Fatal(err)
}
}

var eon rescue.Interface
{
eon = engine.New(engine.Config{
Logger: logger.Fake(),
Redigo: red,
Redigo: prgAll(redigo.Default()),
})
}

Expand Down
14 changes: 1 addition & 13 deletions conformance/delete_gate_redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,11 @@ import (
func Test_Engine_Delete_Gate(t *testing.T) {
var err error

var red redigo.Interface
{
red = redigo.Default()
}

{
err = red.Purge()
if err != nil {
t.Fatal(err)
}
}

var eon rescue.Interface
{
eon = engine.New(engine.Config{
Logger: logger.Fake(),
Redigo: red,
Redigo: prgAll(redigo.Default()),
})
}

Expand Down
Loading

0 comments on commit 5aaee91

Please sign in to comment.