From 32862fee8ffc9e02c2ea33f3eed5b2d58210c354 Mon Sep 17 00:00:00 2001 From: Marceau Date: Wed, 9 Oct 2019 12:14:56 +0200 Subject: [PATCH] fix unit test to pass on windows --- cmd/config_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/config_test.go b/cmd/config_test.go index 8b428bf..db71e47 100644 --- a/cmd/config_test.go +++ b/cmd/config_test.go @@ -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" ) @@ -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) {