Skip to content

Commit 61eb04a

Browse files
committed
Fixed tests for new go-path library release
1 parent 4643ecd commit 61eb04a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: arduino/builder/builder_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ func tmpDirOrDie() string {
3636
}
3737

3838
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+
want := paths.TempDir().Join("arduino-sketch-ACBD18DB4CC2F85CEDEF654FCCC4A4D8")
40+
assert.True(t, builder.GenBuildPath(paths.New("foo")).EquivalentTo(want))
4141

42-
want = filepath.Join(os.TempDir(), "arduino-sketch-D41D8CD98F00B204E9800998ECF8427E")
43-
assert.Equal(t, want, builder.GenBuildPath(nil).String())
42+
want = paths.TempDir().Join("arduino-sketch-D41D8CD98F00B204E9800998ECF8427E")
43+
assert.True(t, builder.GenBuildPath(nil).EquivalentTo(want))
4444
}
4545

4646
func TestEnsureBuildPathExists(t *testing.T) {

0 commit comments

Comments
 (0)