Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Dec 28, 2023
1 parent d9a318b commit 293e650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions tests/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"sync/atomic"
"time"

"github.com/flanksource/duty"
"github.com/flanksource/duty/context"
"github.com/flanksource/duty/job"
"github.com/flanksource/duty/models"
Expand All @@ -30,8 +29,8 @@ var _ = Describe("Job", Ordered, func() {
return nil
},
}
_ = duty.UpdateProperty(ctx, "test.trace", "true")
_ = duty.UpdateProperty(ctx, "test.db.level", "trace")
_ = context.UpdateProperty(ctx, "test.trace", "true")
_ = context.UpdateProperty(ctx, "test.db.level", "trace")

sampleJob.Run()
Expect(sampleJob.Retention.Success).To(Equal(3))
Expand Down
4 changes: 2 additions & 2 deletions tests/properties_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package tests

import (
"github.com/flanksource/duty"
"github.com/flanksource/duty/context"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)

var _ = Describe("Properties", func() {
It("Should save properties to db", func() {
err := duty.UpdateProperties(DefaultContext, map[string]string{
err := context.UpdateProperties(DefaultContext, map[string]string{
"john": "doe",
"hello": "world",
})
Expand Down

0 comments on commit 293e650

Please sign in to comment.