File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ func tmpDirOrDie() string {
36
36
}
37
37
38
38
func TestGenBuildPath (t * testing.T ) {
39
- want := filepath .Join (os .TempDir (), "arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8" )
40
- assert .Equal (t , want , builder .GenBuildPath (paths .New ("foo" )).String ())
39
+ // Convert os.TempDir() to canonical
40
+ want := paths .TempDir ().Join ("arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8" )
41
+ assert .True (t , builder .GenBuildPath (paths .New ("foo" )).EquivalentTo (want ))
41
42
42
- want = filepath . Join ( os . TempDir (), "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E" )
43
- assert .Equal (t , want , builder .GenBuildPath (nil ).String ( ))
43
+ want = paths . TempDir (). Join ( "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E" )
44
+ assert .True (t , builder .GenBuildPath (nil ).EquivalentTo ( want ))
44
45
}
45
46
46
47
func TestEnsureBuildPathExists (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments