Skip to content

Commit 4672b49

Browse files
committed
Fix relative path test on Windows
This changes fixes the one test for Windows, but I am not entirely confident that the test passing means that it will work 100% of the time on Windows. I am still wrapping my head around how the submission stuff should play out.
1 parent fe7e728 commit 4672b49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmd/submit_relative_path_windows_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
func TestSubmitRelativePath(t *testing.T) {
16-
t.Skip("The Windows build is failing and needs to be debugged.\nSee https://ci.appveyor.com/project/kytrinyx/cli/build/110")
16+
//t.Skip("The Windows build is failing and needs to be debugged.\nSee https://ci.appveyor.com/project/kytrinyx/cli/build/110")
1717

1818
oldOut := Out
1919
oldErr := Err
@@ -30,6 +30,7 @@ func TestSubmitRelativePath(t *testing.T) {
3030

3131
tmpDir, err := ioutil.TempDir("", "relative-path")
3232
assert.NoError(t, err)
33+
defer os.RemoveAll(tmpDir)
3334

3435
dir := filepath.Join(tmpDir, "bogus-track", "bogus-exercise")
3536
os.MkdirAll(dir, os.FileMode(0755))
@@ -55,5 +56,5 @@ func TestSubmitRelativePath(t *testing.T) {
5556
assert.NoError(t, err)
5657

5758
assert.Equal(t, 1, len(submittedFiles))
58-
assert.Equal(t, "This is a file.", submittedFiles["/file.txt"])
59+
assert.Equal(t, "This is a file.", submittedFiles["\\file.txt"])
5960
}

0 commit comments

Comments
 (0)