Skip to content

Commit

Permalink
test: update for signature change
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Beaumont <[email protected]>
  • Loading branch information
michaelbeaumont committed Jul 13, 2023
1 parent 2e4afdf commit 9d4425d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/hds/tracker/healthcheck_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ = Describe("HDS Snapshot generator", func() {
generator := NewSnapshotGenerator(resourceManager, given.hdsConfig, 9901)

// when
snapshot, err := generator.GenerateSnapshot(&envoy_config_core_v3.Node{Id: "mesh-1.dp-1"})
snapshot, err := generator.GenerateSnapshot(context.Background(), &envoy_config_core_v3.Node{Id: "mesh-1.dp-1"})

// then
Expect(err).ToNot(HaveOccurred())
Expand Down
7 changes: 4 additions & 3 deletions pkg/util/watchdog/watchdog_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package watchdog_test

import (
"context"
"fmt"
"time"

Expand Down Expand Up @@ -37,7 +38,7 @@ var _ = Describe("SimpleWatchdog", func() {
C: timeTicks,
}
},
OnTick: func() error {
OnTick: func(context.Context) error {
onTickCalls <- struct{}{}
return nil
},
Expand Down Expand Up @@ -82,7 +83,7 @@ var _ = Describe("SimpleWatchdog", func() {
C: timeTicks,
}
},
OnTick: func() error {
OnTick: func(context.Context) error {
return expectedErr
},
OnError: func(err error) {
Expand Down Expand Up @@ -121,7 +122,7 @@ var _ = Describe("SimpleWatchdog", func() {
C: timeTicks,
}
},
OnTick: func() error {
OnTick: func(context.Context) error {
panic("xyz")
},
OnError: func(err error) {
Expand Down

0 comments on commit 9d4425d

Please sign in to comment.