Skip to content

Commit

Permalink
Update watch test to incl new watch param
Browse files Browse the repository at this point in the history
Signed-off-by: Maysun J Faisal <maysun.j.faisal@ibm.com>
  • Loading branch information
maysunfaisal committed May 4, 2020
1 parent 9297928 commit 4e3137d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions pkg/watch/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ package watch

import (
"fmt"
"github.com/openshift/odo/pkg/devfile/adapters/common"
"github.com/openshift/odo/pkg/occlient"
"github.com/openshift/odo/pkg/testingutil"
"github.com/openshift/odo/pkg/util"
"github.com/pkg/errors"
"io"
"os"
"path/filepath"
Expand All @@ -19,6 +14,13 @@ import (
"sync"
"testing"
"time"

"github.com/openshift/odo/pkg/devfile/adapters/common"
"github.com/openshift/odo/pkg/envinfo"
"github.com/openshift/odo/pkg/occlient"
"github.com/openshift/odo/pkg/testingutil"
"github.com/openshift/odo/pkg/util"
"github.com/pkg/errors"
)

// setUpF8AnalyticsComponentSrc sets up a mock analytics component source base for observing changes to source files.
Expand Down Expand Up @@ -809,6 +811,7 @@ func TestWatchAndPush(t *testing.T) {

if tt.isExperimental {
watchParameters.DevfileWatchHandler = mockDevFilePush
watchParameters.EnvSpecificInfo = &envinfo.EnvSpecificInfo{}
} else {
watchParameters.ApplicationName = tt.applicationName
watchParameters.WatchHandler = mockPushLocal
Expand Down

0 comments on commit 4e3137d

Please sign in to comment.