Skip to content

Commit

Permalink
Fix failing test on windows due to slash difference
Browse files Browse the repository at this point in the history
Authored-by: Dennis Leon <leonde@vmware.com>
  • Loading branch information
DennisDenuto committed Oct 4, 2021
1 parent 118d573 commit 84febcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/imgpkg/cmd/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package cmd

import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
Expand Down Expand Up @@ -56,7 +57,7 @@ func TestMultiImgpkgDirError(t *testing.T) {
t.Fatalf("Expected validations to err, but did not")
}

if !strings.Contains(err.Error(), "This directory contains multiple bundle definitions. Only a single instance of .imgpkg/images.yml can be provided") {
if !strings.Contains(err.Error(), fmt.Sprintf("This directory contains multiple bundle definitions. Only a single instance of .imgpkg%simages.yml can be provided", string(os.PathSeparator))) {
t.Fatalf("Expected error to contain message about multiple .imgpkg dirs, got: %s", err)
}
}
Expand Down

0 comments on commit 84febcf

Please sign in to comment.