Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkubala committed Oct 2, 2018
1 parent 58e05ba commit 785a4a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/skaffold/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (r *SkaffoldRunner) Dev(ctx context.Context, out io.Writer, artifacts []*la
// Watch test configuration
if err := watcher.Register(
func() ([]string, error) { return r.TestDependencies(), nil },
func() { changed.needsRedeploy = true },
func(watch.Events) { changed.needsRedeploy = true },
); err != nil {
return nil, errors.Wrap(err, "watching test files")
}
Expand Down
8 changes: 4 additions & 4 deletions pkg/skaffold/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,15 @@ func TestRun(t *testing.T) {
},
{
description: "run test error",
config: &v1alpha3.SkaffoldConfig{
Build: v1alpha3.BuildConfig{
Artifacts: []*v1alpha3.Artifact{
config: &latest.SkaffoldConfig{
Build: latest.BuildConfig{
Artifacts: []*latest.Artifact{
{
ImageName: "test",
},
},
},
Test: []v1alpha3.TestCase{
Test: []latest.TestCase{
{
ImageName: "test",
StructureTests: []string{"fake_file.yaml"},
Expand Down

0 comments on commit 785a4a4

Please sign in to comment.