Skip to content

Commit

Permalink
fix unit test to pass on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
xiorcal authored and aswinkarthik committed Oct 17, 2019
1 parent 79e78ae commit 32862fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/config_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
package cmd_test

import (
"github.com/aswinkarthik/csvdiff/cmd"
"github.com/spf13/afero"
"os"
"testing"

"github.com/aswinkarthik/csvdiff/cmd"
"github.com/spf13/afero"

"github.com/aswinkarthik/csvdiff/pkg/digest"
"github.com/stretchr/testify/assert"
)
Expand Down Expand Up @@ -162,7 +163,7 @@ func TestNewContext(t *testing.T) {
"/base.csv",
"/delta.csv",
)
assert.EqualError(t, err, "error in base-file: open /base.csv: file does not exist")
assert.EqualError(t, err, "error in base-file: open "+string(os.PathSeparator)+"base.csv: file does not exist")
})

t.Run("should validate if base file is a csv file", func(t *testing.T) {
Expand Down

0 comments on commit 32862fe

Please sign in to comment.