Skip to content

Commit

Permalink
Adding missing parameter to NewWatcher call
Browse files Browse the repository at this point in the history
  • Loading branch information
michael.szacillo committed Jan 14, 2021
1 parent c080e68 commit 4183643
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/agent/watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ var _ = Describe("Watcher", func() {
It("should download and load the new models", func() {
defer GinkgoRecover()
logger.Printf("Sync model config using temp dir %v\n", modelDir)
watcher := NewWatcher("/tmp/configs", modelDir)
watcher := NewWatcher("/tmp/configs", modelDir, sugar)
modelConfigs := modelconfig.ModelConfigs{
{
Name: "model1",
Expand Down Expand Up @@ -461,7 +461,9 @@ var _ = Describe("Watcher", func() {
Providers: map[storage.Protocol]storage.Provider{
storage.GCS: &cl,
},
Logger: sugar,
},
logger: sugar,
}
go puller.processCommands(watcher.ModelEvents)
Eventually(func() int { return len(puller.channelMap) }).Should(Equal(0))
Expand Down

0 comments on commit 4183643

Please sign in to comment.